/* ==========================================================================
   AL MARHUBI BULLION - LUXURY GOLD THEME
   Pixel-Perfect Layout, Exact Spacing & Typography Best Practices
   ========================================================================== */

:root {
  --bg-main: #000000;
  --bg-metals: #151415;
  --bg-input: #181617;
  --bg-input-focus: #201e1f;
  --bg-card-dark: #121111;

  --gold-primary: #e0be67;
  --gold-secondary: #c99e32;
  --gold-light: #fef0a8;
  --gold-gradient: linear-gradient(135deg, #eec765 0%, #ca9e33 100%);
  --gold-gradient-hover: linear-gradient(135deg, #f7d57d 0%, #dcad3f 100%);
  --gold-border: rgba(224, 190, 103, 0.4);
  --gold-border-subtle: rgba(224, 190, 103, 0.2);

  --text-main: #ffffff;
  --text-body: #a8a8a8;
  --text-body-light: #cfcfcf;
  --text-muted: #7d7d7d;
  --text-gold: #e0be67;

  --font-en: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: 'Tajawal', 'Cairo', Tahoma, sans-serif;
  --font-display: 'Cinzel', 'Outfit', serif;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
}

body {
  font-family: var(--font-en);
  line-height: 1.6;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] {
  font-family: var(--font-ar);
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px;
}

.text-gold {
  color: var(--gold-primary);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0d0d0d;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(224, 190, 103, 0.25);
}
.btn-gold:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(224, 190, 103, 0.4);
}

.btn-outline-gold {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(224, 190, 103, 0.6);
}
.btn-outline-gold:hover {
  background: rgba(224, 190, 103, 0.1);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVIGATION (Screen 1)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.96);
  border-bottom-color: rgba(224, 190, 103, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.85);
}

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

.brand-logo {
  display: flex;
  align-items: center;
}
.brand-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #d8d8d8;
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--gold-primary);
}

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

.lang-toggle {
  display: flex;
  align-items: center;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 30px;
  padding: 3px 6px;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.lang-toggle:hover {
  border-color: var(--gold-primary);
}
.lang-switch-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  transition: var(--transition);
}
[dir="rtl"] .lang-switch-knob {
  background: var(--gold-primary);
}
.lang-switch-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  padding-right: 3px;
}
[dir="rtl"] .lang-switch-label {
  padding-right: 0;
  padding-left: 3px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION (Luminous Atmospheric Gradient & Faded Transparent Blend)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 88vh;
  padding: 130px 0 65px;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse 750px 520px at 85% 50%, rgba(224, 190, 103, 0.32) 0%, rgba(180, 140, 50, 0.14) 40%, rgba(0, 0, 0, 0) 75%), #000000;
  overflow: hidden;
}
[dir="rtl"] .hero-section {
  background: radial-gradient(ellipse 750px 520px at 15% 50%, rgba(224, 190, 103, 0.32) 0%, rgba(180, 140, 50, 0.14) 40%, rgba(0, 0, 0, 0) 75%), #000000;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(224, 190, 103, 0.5);
  background: rgba(0, 0, 0, 0.5);
  color: var(--gold-primary);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: var(--gold-primary);
  margin-bottom: 16px;
}

.hero-subtitles {
  margin-bottom: 18px;
}
.hero-sub-1, .hero-sub-2 {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Faded Seamless Hero Image Wrapper */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-glow {
  position: absolute;
  width: 130%;
  height: 130%;
  background: radial-gradient(circle at 50% 50%, rgba(224, 190, 103, 0.36) 0%, rgba(190, 145, 55, 0.18) 40%, rgba(5, 5, 5, 0) 72%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
[dir="rtl"] .hero-image-glow {
  background: radial-gradient(circle at 50% 50%, rgba(224, 190, 103, 0.36) 0%, rgba(190, 145, 55, 0.18) 40%, rgba(5, 5, 5, 0) 72%);
}

.hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 590px;
  height: auto;
  object-fit: contain;
  /* Faded transparent feathered edges seamlessly melting into background glow */
  -webkit-mask-image: radial-gradient(ellipse 88% 84% at 50% 50%, black 52%, rgba(0, 0, 0, 0.8) 74%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 84% at 50% 50%, black 52%, rgba(0, 0, 0, 0.8) 74%, transparent 100%);
  opacity: 0.94;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.85));
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.hero-img:hover {
  transform: scale(1.02);
  opacity: 1;
}

/* ==========================================================================
   METALS TICKER BAR (Screen 1)
   ========================================================================== */
.metals-bar-section {
  background: var(--bg-metals);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 30px 0;
}

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

.metal-card {
  padding: 0 8px;
}

.metal-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 4px;
}
.metal-spec {
  font-size: 0.9rem;
  color: #9c9c9c;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   SECTION HEADERS & TAGS (Screen 1 & 2)
   ========================================================================== */
.section-tag-gold {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.tag-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tag-brand-icon img {
  height: 34px;
  width: auto;
  object-fit: contain;
}
.tag-text {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.2px;
}
.section-sub-gold {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 0;
}

/* ==========================================================================
   ABOUT & MISSION SECTIONS (Screen 1)
   ========================================================================== */
.about-section {
  padding: 75px 0 45px;
  background: #000000;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 55px;
  align-items: start;
}

.split-body {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
}

.mission-section {
  padding: 45px 0 75px;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.leader-info {
  margin-top: 6px;
}
.leader-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 3px;
}
.leader-role {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.mission-quote-box {
  position: relative;
  padding-right: 36px;
}
[dir="rtl"] .mission-quote-box {
  padding-right: 0;
  padding-left: 36px;
}
.mission-quote-icon {
  position: absolute;
  right: -6px;
  bottom: -22px;
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.07);
  font-family: serif;
  line-height: 1;
}
[dir="rtl"] .mission-quote-icon {
  right: auto;
  left: -6px;
}

/* ==========================================================================
   VALUES SECTION (Screen 2)
   ========================================================================== */
.values-section {
  padding: 80px 0 90px;
  background: #000000;
  text-align: left;
}
[dir="rtl"] .values-section {
  text-align: right;
}

.values-header {
  margin-bottom: 45px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: end;
}

.value-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}
.value-card-wrapper:hover {
  transform: translateY(-6px);
}

.value-card-shape {
  position: relative;
  width: 100%;
  max-width: 255px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 15px 35px rgba(224, 190, 103, 0.22));
  transition: var(--transition);
}
.value-card-wrapper:hover .value-card-shape {
  filter: drop-shadow(0 20px 45px rgba(224, 190, 103, 0.38));
}

.value-svg-frame {
  width: 100%;
  height: auto;
  display: block;
}

.value-card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px 20px;
  text-align: center;
  z-index: 2;
}

.value-icon-box {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  margin-bottom: 10px;
}
.value-icon-box svg {
  width: 62px;
  height: 62px;
  stroke: var(--gold-primary);
}

.value-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.value-desc {
  font-size: 0.78rem;
  color: #9c9c9c;
  line-height: 1.42;
  max-width: 180px;
}

/* ==========================================================================
   SERVICES SECTION (Screen 2)
   ========================================================================== */
.services-section {
  padding: 80px 0 90px;
  background: #000000;
}

.services-header {
  margin-bottom: 28px;
}

.services-tabs-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.tab-btn {
  padding: 8px 22px;
  border-radius: var(--radius-full);
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(224, 190, 103, 0.5);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn:hover {
  background: rgba(224, 190, 103, 0.12);
  border-color: var(--gold-primary);
}
.tab-btn.active {
  background: var(--gold-gradient);
  color: #000000;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(224, 190, 103, 0.3);
}

.service-tab-content {
  display: none;
}
.service-tab-content.active {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  animation: fadeIn 0.35s ease forwards;
}

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

.service-image-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(224, 190, 103, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85);
}
.service-image-box img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-image-box:hover img {
  transform: scale(1.02);
}

.service-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 16px;
}
.service-desc {
  font-size: 1.02rem;
  color: #c4c4c4;
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-bullets {
  margin-bottom: 26px;
}
.service-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 0.98rem;
  color: #dbdbdb;
  margin-bottom: 10px;
  line-height: 1.5;
}
[dir="rtl"] .service-bullets li {
  padding-left: 0;
  padding-right: 18px;
}
.service-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-size: 1.5rem;
  line-height: 1;
  top: -3px;
}
[dir="rtl"] .service-bullets li::before {
  left: auto;
  right: 0;
}

.service-cta-link {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-primary);
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
  transition: var(--transition);
}
.service-cta-link:hover {
  color: #fff4be;
}

/* ==========================================================================
   CONTACT SECTION (Screen 3)
   ========================================================================== */
.contact-section {
  padding: 85px 0 75px;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  font-size: 0.92rem;
  color: #ffffff;
  font-family: inherit;
  transition: var(--transition);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: var(--bg-input-focus);
  box-shadow: 0 0 10px rgba(224, 190, 103, 0.18);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: #555555;
}

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

.contact-info-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 14px;
}

.contact-info-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 28px;
}

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

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  color: #dedede;
  transition: var(--transition);
}
.contact-channel-item:hover {
  color: var(--gold-primary);
}

.channel-icon-svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   FOOTER (Screen 3)
   ========================================================================== */
.site-footer {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 70px 0 35px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.25fr;
  gap: 40px;
  margin-bottom: 45px;
}

.footer-tagline {
  font-size: 0.92rem;
  color: #888888;
  margin-top: 16px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.92rem;
  color: #a0a0a0;
}
.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  color: #a0a0a0;
}

.footer-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 25px;
}

.social-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.social-circle-btn:hover {
  background: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(224, 190, 103, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: #5d5d5d;
}

/* Modal & Toasts */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.show {
  display: flex;
}

.modal-card {
  background: #121111;
  border: 1px solid rgba(224, 190, 103, 0.45);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(224, 190, 103, 0.15);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #888888;
  font-size: 1.5rem;
  cursor: pointer;
}
[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 18px;
}

.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
[dir="rtl"] .toast-container {
  right: auto;
  left: 28px;
}

.toast-alert {
  background: #181717;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 18px rgba(224, 190, 103, 0.2);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .service-tab-content.active {
    grid-template-columns: 1fr;
  }
  .split-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .metals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 70px;
  }
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 26px 20px;
    gap: 18px;
    border-bottom: 1px solid rgba(224, 190, 103, 0.2);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
  }
  .main-nav.open {
    transform: translateY(0);
  }
  .mobile-toggle {
    display: block;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .metals-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
