/* ==============================================================================
   BIMSECURE — CYBER & IT INFRASTRUCTURE
   Design System & High-Fidelity Enterprise Stylesheet
   ============================================================================== */

:root {
  --bg-primary: #0a0b0d;
  --bg-surface: #111419;
  --bg-surface-elevated: #161a22;
  --bg-input: #12151b;
  
  --text-white: #ffffff;
  --text-muted-hero: #8e97a4;
  --text-body: #a2adb9;
  --text-dim: #647082;
  --text-subtle: #454f5e;

  --accent-amber: #ff9800;
  --accent-amber-glow: rgba(255, 152, 0, 0.35);
  --accent-amber-subtle: rgba(255, 152, 0, 0.12);
  --accent-amber-border: rgba(255, 152, 0, 0.45);
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-focus: #ff9800;

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1340px;
  --header-height: 60px;
  --transition-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  scroll-snap-type: y proximity;
  background-color: var(--bg-primary);
  color: var(--text-body);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Background Atmosphere */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 20%, rgba(255, 152, 0, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(255, 120, 0, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(15, 18, 24, 0.6) 0%, transparent 80%);
  z-index: 0;
}

.cyber-grid {
  display: none;
}

/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1000;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff7700, #ffb300);
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.6);
  transition: width 0.1s ease-out;
}

/* Site Header */
.site-header {
  position: fixed;
  top: 2px;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(10, 11, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 900;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.status-dot-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-amber);
  box-shadow: 0 0 12px var(--accent-amber), 0 0 20px rgba(255, 152, 0, 0.4);
  animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px var(--accent-amber);
  }
  50% {
    opacity: 0.75;
    transform: scale(0.92);
    box-shadow: 0 0 4px var(--accent-amber);
  }
}

.brand-logo-img {
  height: 24px !important;
  max-height: 24px !important;
  width: auto !important;
  max-width: 130px !important;
  display: block !important;
  object-fit: contain !important;
  filter: none !important;
  transition: opacity 0.2s ease;
}

.brand-group:hover .brand-logo-img {
  opacity: 0.85;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.12em;
}

.brand-divider {
  color: var(--text-subtle);
  font-weight: 300;
  font-size: 13px;
}

.brand-subtext {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.nav-item {
  color: #c0cad5;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-item:hover {
  color: var(--text-white);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-amber);
  transition: width 0.25s ease-in-out;
}

.nav-item.active {
  color: var(--text-white);
}

.nav-item.active::after {
  width: 100%;
}

.btn-initiate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--accent-amber-border);
  background: transparent;
  color: var(--accent-amber);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.btn-initiate:hover {
  background: rgba(255, 152, 0, 0.1);
  border-color: var(--accent-amber);
  color: #ffb74d;
  box-shadow: 0 0 16px rgba(255, 152, 0, 0.25);
  transform: translateY(-1px);
}

.arrow-icon {
  transition: transform 0.2s ease;
}

.btn-initiate:hover .arrow-icon {
  transform: translateX(3px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-white);
  transition: var(--transition-smooth);
}

.mobile-menu-drawer {
  display: none;
}

/* Section Common Structure */
main {
  position: relative;
  z-index: 1;
}

.section {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 16px) 0 32px 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  box-sizing: border-box;
}

.section:last-of-type {
  border-bottom: none;
}

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  padding-top: calc(var(--header-height) + 16px);
  padding-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 56px;
  align-items: flex-end;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-amber);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.tag-bullet {
  font-size: 14px;
  color: var(--accent-amber);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(44px, 4.8vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  display: flex;
  flex-direction: column;
}

.line-white {
  color: var(--text-white);
}

.line-muted {
  color: var(--text-muted-hero);
}

.hero-right {
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
}

.hero-description {
  font-size: 16.5px;
  line-height: 1.75;
  color: #8c97a5;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-dialogue-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-white);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.hero-dialogue-link:hover {
  color: var(--accent-amber);
}

.dialogue-line {
  display: inline-block;
  width: 44px;
  height: 1.5px;
  background-color: var(--text-muted-hero);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-dialogue-link:hover .dialogue-line {
  width: 64px;
  background-color: var(--accent-amber);
}

/* Split Grid Pattern (Methodology, Practice Areas, Engage) */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 56px;
}

.section-badge {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.split-headline {
  font-family: var(--font-heading);
  font-size: clamp(36px, 3.8vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.split-intro-text {
  font-size: 15.5px;
  line-height: 1.75;
  color: #8c97a5;
  max-width: 420px;
}

.lead-statement {
  font-size: 19px;
  line-height: 1.68;
  color: #e2e8f0;
  margin-bottom: 38px;
  font-weight: 400;
}

/* Methodology Columns */
.sub-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.methodology-card {
  display: flex;
  flex-direction: column;
}

.card-number {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-amber);
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: #8c97a5;
}

/* Practice Areas / Cyber Defense Solutions */
.practice-list {
  display: flex;
  flex-direction: column;
}

.practice-item {
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.practice-item:first-child {
  border-top: none;
  padding-top: 0;
}

.practice-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  gap: 16px;
}

.practice-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.practice-tag {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-subtle);
  text-transform: uppercase;
  white-space: nowrap;
}

.practice-description {
  font-size: 14.5px;
  line-height: 1.75;
  color: #8c97a5;
  max-width: 620px;
}

/* Engage Section */
.engage-section {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 24px) 0 48px 0;
  border-bottom: 1px solid var(--border-light);
  box-sizing: border-box;
}

.engage-section .section-container {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: start;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 36px;
}

.engage-headline {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-top: 0;
  margin-bottom: 20px;
}

.engage-subtext {
  font-size: 15.5px;
  line-height: 1.75;
  color: #8c97a5;
  max-width: 440px;
  margin-bottom: 36px;
}

.engage-meta-table {
  display: flex;
  flex-direction: column;
}

.meta-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
}

.meta-row:last-child {
  border-bottom: 1px solid var(--border-light);
}

.meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.meta-value {
  font-size: 15px;
  color: #cbd5e1;
  font-weight: 500;
}

.link-accent {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.link-accent:hover {
  color: var(--accent-amber);
}

/* Form Styles */
.engage-form-col {
  padding-left: 8px;
}

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

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.field-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8c97a5;
  text-transform: uppercase;
}

.label-optional {
  font-weight: 400;
  color: var(--text-subtle);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 12px 16px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #4b5563;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--border-focus);
  background: #141820;
  box-shadow: 0 0 0 1px var(--border-focus), 0 0 14px rgba(255, 152, 0, 0.2);
}

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

/* Custom Styled Select */
.select-wrapper {
  position: relative;
  width: 100%;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-color: var(--bg-input);
}

.form-select option {
  background-color: var(--bg-surface);
  color: var(--text-white);
  padding: 12px;
}

.select-caret {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.form-select:focus + .select-caret {
  color: var(--accent-amber);
}

/* Honeypot hidden field */
.honeypot-container {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.visually-hidden-field {
  display: none;
}

/* Validation Errors */
.field-error {
  font-size: 12px;
  color: #f87171;
  min-height: 16px;
  margin-top: 2px;
  display: block;
}

.form-input.has-error,
.form-select.has-error,
.form-textarea.has-error {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
}

/* Submit Button */
.form-submit-row {
  margin-top: 8px;
}

.btn-send-request {
  width: 100%;
  padding: 15px 26px;
  background: #111419;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
}

.btn-send-request:hover {
  background: #171b22;
  border-color: var(--accent-amber);
  color: #ffb74d;
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.22);
}

.btn-send-request:active {
  transform: scale(0.995);
}

.btn-arrow {
  transition: transform 0.25s ease;
}

.btn-send-request:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-send-request.loading .btn-spinner {
  display: inline-block;
}

.btn-send-request.loading .btn-arrow {
  display: none;
}

.btn-send-request.loading {
  pointer-events: none;
  opacity: 0.8;
}

.form-footer-note {
  font-size: 11.5px;
  color: var(--text-subtle);
  text-align: center;
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* Feedback Banner */
.form-feedback-banner {
  padding: 16px 20px;
  border-radius: 3px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

.form-feedback-banner.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.form-feedback-banner.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

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

/* Django Message Alert */
.form-messages {
  margin-bottom: 20px;
}

.form-alert {
  padding: 14px 18px;
  border-radius: 2px;
  font-size: 13.5px;
  margin-bottom: 10px;
}

.form-alert.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.form-alert.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Site Footer */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--border-light);
  padding: 36px 0;
  background: var(--bg-primary);
  position: relative;
  z-index: 10;
  scroll-snap-align: end;
}

.footer-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--text-white);
}

/* Responsive Media Queries */
@media (max-width: 1080px) {
  .header-container,
  .section-container,
  .footer-container {
    padding: 0 32px;
  }

  .hero-grid,
  .split-grid,
  .engage-section .section-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-right {
    padding-bottom: 0;
  }

  .engage-form-col {
    padding-left: 0;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 58px;
  }

  html {
    scroll-snap-type: none !important;
    scroll-padding-top: var(--header-height);
  }

  .site-header {
    padding: 0;
  }

  .header-container {
    padding: 0 18px;
  }

  .brand-subtext {
    display: none;
  }

  .brand-divider {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-menu-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(10, 11, 13, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 24px 20px;
    gap: 20px;
    z-index: 890;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  .mobile-menu-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-link {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--text-body);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .mobile-nav-link:hover {
    color: var(--accent-amber);
  }

  .mobile-initiate {
    margin-top: 10px;
    justify-content: center;
  }

  /* Full mobile fluid layout: remove any height locks that cause section overlap */
  .section,
  .hero-section,
  .engage-section {
    height: auto !important;
    min-height: auto !important;
    display: block !important;
    padding: 56px 0 !important;
    position: static !important;
    overflow: visible !important;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 36px) !important;
    padding-bottom: 56px !important;
  }

  .engage-section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  .section-container,
  .footer-container {
    padding: 0 18px !important;
  }

  /* Responsive Headings */
  .hero-headline {
    font-size: 36px !important;
    line-height: 1.15 !important;
  }

  .split-headline,
  .engage-headline {
    font-size: 32px !important;
    line-height: 1.15 !important;
  }

  .lead-statement {
    font-size: 16px !important;
    margin-bottom: 28px !important;
  }

  .hero-description,
  .split-intro-text,
  .engage-subtext {
    font-size: 14.5px !important;
  }

  .hero-grid,
  .split-grid,
  .engage-section .section-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }

  .sub-columns-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .practice-item {
    padding: 24px 0 !important;
  }

  .practice-title {
    font-size: 19px !important;
  }

  .practice-description {
    font-size: 14px !important;
  }

  .practice-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .engage-form-col {
    padding-left: 0 !important;
    width: 100% !important;
  }

  .footer-container {
    flex-direction: column;
    gap: 18px;
    text-align: center;
    padding: 0 18px !important;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ==========================================================================
   Language Dropdown & Multilingual Controls
   ========================================================================== */
.lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  font-family: var(--font-body);
}

.lang-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  padding: 5px 9px;
  border-radius: 4px;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
  user-select: none;
}

.lang-dropdown-trigger:hover,
.lang-dropdown.open .lang-dropdown-trigger {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.lang-dropdown.open .lang-dropdown-trigger {
  border-color: var(--accent-amber);
}

.lang-dropdown-trigger .globe-icon {
  color: var(--accent-amber);
  opacity: 0.9;
  flex-shrink: 0;
}

.lang-dropdown-trigger .current-lang-code {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-dropdown-trigger .chevron-icon {
  color: var(--text-dim);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.lang-dropdown.open .lang-dropdown-trigger .chevron-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: #0f1117;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
  pointer-events: none;
}

.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 4px;
  color: var(--text-body);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.lang-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
}

.lang-dropdown-item.active {
  background: rgba(235, 94, 40, 0.12);
  color: var(--accent-amber);
  font-weight: 600;
}

.lang-dropdown-item .lang-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

.lang-dropdown-item.active .lang-tag {
  background: var(--accent-amber);
  color: #000;
}

/* Mobile Language Selector Row */
.mobile-lang-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.mobile-lang-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-body);
  text-decoration: none;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  transition: var(--transition-fast);
}

.mobile-lang-btn.active {
  color: #000;
  background: var(--accent-amber);
  border-color: var(--accent-amber);
  font-weight: 700;
}

/* ==========================================================================
   RTL (Right-to-Left) Styles for Arabic (ar)
   ========================================================================== */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .split-headline,
[dir="rtl"] .hero-headline,
[dir="rtl"] .engage-headline {
  font-family: 'Cairo', 'Space Grotesk', sans-serif;
  letter-spacing: 0;
  line-height: 1.35;
}

[dir="rtl"] .brand-group {
  flex-direction: row;
}

[dir="rtl"] .brand-subtext {
  letter-spacing: 0.08em;
  font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .lang-dropdown {
  margin-left: 0;
  margin-right: 8px;
}

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

[dir="rtl"] .lang-dropdown-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .arrow-icon,
[dir="rtl"] .btn-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .btn-initiate:hover .arrow-icon,
[dir="rtl"] .btn-send-request:hover .btn-arrow {
  transform: scaleX(-1) translateX(-4px);
}

[dir="rtl"] .hero-tag .tag-bullet {
  margin-left: 8px;
  margin-right: 0;
}

[dir="rtl"] .engage-form-col {
  padding-left: 0;
  padding-right: 56px;
  border-left: none;
  border-right: 1px solid var(--border-light);
}

[dir="rtl"] .select-caret {
  right: auto;
  left: 18px;
}

[dir="rtl"] .card-number {
  float: left;
}

[dir="rtl"] .meta-row {
  flex-direction: row;
  justify-content: space-between;
}

[dir="rtl"] .form-footer-note {
  text-align: right;
}

@media (max-width: 1080px) {
  [dir="rtl"] .engage-form-col {
    padding-right: 0 !important;
    border-right: none;
  }
}


