/**
 * MBA Trading - Core Stylesheet
 * Brand Color Palette: Forest Green (#204507, #386A15), Gold Accent (#FFBC7D), Dark Green Footer (#122803)
 * Offline Self-Contained System with Native RTL Support
 */

:root {
  --primary: #204507;
  --primary-hover: #163204;
  --primary-light: #386A15;
  --primary-vibrant: #5CAA25;
  --accent: #FFBC7D;
  --accent-gold: #D4AF37;
  --header-bg: #ffffff;
  --topbar-bg: #122803;
  --footer-bg: #122803;
  --footer-text: #DADADA;
  --footer-heading: #ffffff;
  --text-color: #4a5568;
  --text-muted: #718096;
  --heading-color: #1a202c;
  --bg-light: #f8faf9;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --card-border: rgba(32, 69, 7, 0.12);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 10px 30px rgba(32, 69, 7, 0.15);
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Cairo', sans-serif;
  --font-heading: 'Roboto Slab', 'Roboto', 'Cairo', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

body[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', var(--font-family);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: all 0.25s ease;
}

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

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TOP BAR */
.top-bar {
  background-color: var(--topbar-bg);
  color: #e2e8f0;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e0;
}

.contact-item svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
}

.contact-item a {
  color: #e2e8f0;
}

.contact-item a:hover {
  color: var(--accent);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 6px;
  border-radius: 4px;
}

.lang-btn {
  color: #cbd5e0;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 3px;
}

.lang-btn.active, .lang-btn:hover {
  background-color: var(--primary-light);
  color: #ffffff;
}

/* HEADER & NAVBAR */
.site-header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}

.logo a {
  display: flex;
  align-items: center;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #1a202c;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-light);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 250px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 99;
  border-top: 3px solid var(--primary-light);
}

body[dir="rtl"] .nav-dropdown {
  left: auto;
  right: 0;
}

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

.dropdown-link {
  display: block;
  padding: 9px 20px;
  color: #2d3748;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-link:hover {
  background-color: var(--bg-light);
  color: var(--primary);
  padding-left: 24px;
}

body[dir="rtl"] .dropdown-link:hover {
  padding-left: 20px;
  padding-right: 24px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(32, 69, 7, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(32, 69, 7, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 22px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-gold {
  background: linear-gradient(135deg, #FFBC7D 0%, #D4AF37 100%);
  color: #122803 !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
}

/* HERO SECTION */
.hero-section {
  position: relative;
  background: #122803;
  color: #ffffff;
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(18, 40, 3, 0.92) 0%, rgba(32, 69, 7, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 188, 125, 0.15);
  border: 1px solid rgba(255, 188, 125, 0.4);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 46px;
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 35px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* STATS STRIP */
.stats-strip {
  background: #ffffff;
  margin-top: -50px;
  position: relative;
  z-index: 5;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--primary-light);
  padding: 30px 20px;
}

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

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border-color);
  padding: 10px;
}

body[dir="rtl"] .stat-item {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

.stat-item:last-child {
  border-right: none;
  border-left: none;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* SECTION TITLES */
.section {
  padding: 85px 0;
}

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

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

.section-subtitle {
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.3;
  margin-bottom: 15px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* TRADING DIVISIONS (3 PILLARS) */
.division-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.division-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.division-img-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #f0f4ec;
}

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

.division-card:hover .division-img-wrap img {
  transform: scale(1.05);
}

.division-body {
  padding: 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.division-tag {
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.division-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.division-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.division-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.division-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.division-link:hover {
  color: var(--primary-light);
  gap: 10px;
}

/* COMMODITY CARDS GRID */
.commodity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.commodity-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.commodity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(32, 69, 7, 0.12);
  border-color: var(--primary-light);
}

.commodity-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.commodity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.commodity-card:hover .commodity-thumb img {
  transform: scale(1.06);
}

.commodity-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(18, 40, 3, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

body[dir="rtl"] .commodity-category-badge {
  left: auto;
  right: 12px;
}

.commodity-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.commodity-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.commodity-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.commodity-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
}

.commodity-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.commodity-specs-mini {
  background: var(--bg-light);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  margin-bottom: 18px;
  border-left: 3px solid var(--primary-light);
}

body[dir="rtl"] .commodity-specs-mini {
  border-left: none;
  border-right: 3px solid var(--primary-light);
}

.commodity-btn-wrap {
  display: flex;
  gap: 10px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  flex: 1;
  text-align: center;
}

/* VALUE PROPOSITION / FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.feature-box {
  background: #ffffff;
  padding: 30px 22px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

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

.feature-icon-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  background: rgba(92, 170, 37, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-wrap img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, #122803 0%, #204507 100%);
  color: #ffffff;
  padding: 60px 0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(18, 40, 3, 0.25);
  position: relative;
  overflow: hidden;
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.cta-text {
  font-size: 16px;
  color: #cbd5e0;
}

/* FORMS */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #2d3748;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 14.5px;
  color: #2d3748;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(92, 170, 37, 0.2);
}

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

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

/* FOOTER (EXACT ELEMENTOR-209 REPLICA IN #122803) */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 75px 0 0;
  font-size: 14px;
}

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

.footer-logo img {
  height: 55px;
  width: auto;
  margin-bottom: 18px;
}

.footer-tagline {
  color: #cbd5e0;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.footer-heading {
  color: var(--footer-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent);
}

body[dir="rtl"] .footer-heading::after {
  left: auto;
  right: 0;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--footer-text);
  transition: color 0.2s, padding 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

body[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--footer-text);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: var(--footer-text);
}

.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s ease;
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-link:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  color: #ffffff;
}

.footer-bottom {
  padding: 22px 0;
  font-size: 13px;
  color: #a0aec0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* FLASH ALERTS */
.alert {
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 14.5px;
  font-weight: 500;
}

.alert-success {
  background-color: #e6ffed;
  border: 1px solid #acf2bd;
  color: #1a7f37;
}

.alert-error {
  background-color: #ffebe9;
  border: 1px solid #ffc1ba;
  color: #cf222e;
}
