/* ==========================================================================
   مهندس محمد غلامی — کارشناس رسمی دادگستری راه و ساختمان
   Ultra-Luxury Personal Brand & Engineering Design System
   ========================================================================== */

/* 1. Typography & Webfonts */
@font-face {
  font-family: 'Ravi';
  src: url('../fonts/Ravi-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ravi';
  src: url('../fonts/Ravi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ravi';
  src: url('../fonts/Ravi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ravi';
  src: url('../fonts/Ravi-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ravi';
  src: url('../fonts/Ravi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ravi';
  src: url('../fonts/Ravi-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Color Palette & Design Tokens */
:root {
  /* Dark Theme (Default Luxury Obsidian) */
  --bg-base: #060911;
  --bg-elevated: #0b111e;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(22, 33, 58, 0.85);
  --bg-glass: rgba(11, 17, 30, 0.82);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(212, 175, 55, 0.35);
  --border-active: rgba(212, 175, 55, 0.7);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --gold-primary: #d4af37;
  --gold-light: #f3d179;
  --gold-dark: #b8860b;
  --gold-glow: rgba(212, 175, 55, 0.20);
  --gold-gradient: linear-gradient(135deg, #f5d77f 0%, #d4af37 50%, #aa7c11 100%);
  --gold-gradient-subtle: linear-gradient(135deg, rgba(245, 215, 127, 0.12) 0%, rgba(212, 175, 55, 0.04) 100%);
  
  --badge-bg: rgba(212, 175, 55, 0.10);
  --badge-border: rgba(212, 175, 55, 0.25);
  --badge-text: #f0cf72;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.25);

  --font-family: 'Ravi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1200px;
}

[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  
  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-hover: rgba(184, 134, 11, 0.4);
  --border-active: rgba(184, 134, 11, 0.8);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --gold-primary: #b8860b;
  --gold-light: #d4af37;
  --gold-dark: #8c6508;
  --gold-glow: rgba(184, 134, 11, 0.12);
  --gold-gradient: linear-gradient(135deg, #cf9826 0%, #b88214 50%, #8c6204 100%);
  --gold-gradient-subtle: linear-gradient(135deg, rgba(212, 175, 55, 0.10) 0%, rgba(184, 134, 11, 0.02) 100%);
  
  --badge-bg: rgba(184, 134, 11, 0.08);
  --badge-border: rgba(184, 134, 11, 0.22);
  --badge-text: #8c6508;
  
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.1);
  --shadow-gold: 0 10px 25px rgba(184, 134, 11, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.85;
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: relative;
}

html[dir="ltr"] body {
  direction: ltr;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

p {
  text-align: right;
  line-height: 1.8;
}

html[dir="ltr"] p {
  text-align: left;
}

/* Atmospheric Background Glow */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow-1 {
  position: absolute;
  top: -10%;
  right: 15%;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 65%);
  filter: blur(60px);
  opacity: 0.55;
}

.ambient-glow-2 {
  position: absolute;
  bottom: 20%;
  left: -10%;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 65%);
  filter: blur(80px);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 60%, transparent 100%);
  opacity: 0.4;
}

/* 4. Container & Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

/* 5. Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.site-header.scrolled {
  padding: 9px 0;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  max-width: 1280px;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--gold-gradient-subtle);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  flex-shrink: 0;
}

.brand:hover .brand-icon {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
  line-height: 1.3;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-primary);
  line-height: 1.3;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--gold-primary);
  background: var(--badge-bg);
}

.nav-link.active {
  color: var(--gold-primary);
  background: var(--badge-bg);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 10px;
  left: 10px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transition: var(--transition);
}

html[dir="ltr"] .nav-link::after {
  right: 10px;
  left: 10px;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

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

/* Control Buttons */
.ctrl-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.80rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.ctrl-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.btn-primary.nav-cta {
  font-size: 0.84rem;
  padding: 8px 16px;
  white-space: nowrap;
}

.ctrl-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* Action Buttons */
.btn-primary {
  background: var(--gold-gradient);
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  font-weight: 700;
  font-size: 0.90rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.25);
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.38);
  color: #ffffff !important;
}

.btn-primary svg {
  stroke: #ffffff !important;
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.90rem;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 6. Hero Section */
.hero-section {
  padding-top: 50px;
  padding-bottom: 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  width: fit-content;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.38;
  letter-spacing: -0.6px;
  color: var(--text-primary);
}

.hero-title .highlight {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.95;
  text-align: right;
}

html[dir="ltr"] .hero-lead {
  text-align: left;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-item svg {
  color: var(--gold-primary);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Portrait Visual Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-xl);
  padding: 10px;
  background: var(--gold-gradient-subtle);
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.portrait-img-wrapper {
  position: relative;
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 4 / 5;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.portrait-frame:hover .portrait-img {
  transform: scale(1.02);
}

.portrait-badge-overlay {
  position: absolute;
  bottom: 16px;
  right: 16px;
  left: 16px;
  background: rgba(11, 17, 30, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gold-gradient);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-icon-box svg {
  stroke: #ffffff !important;
}

.badge-text-box h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.badge-text-box p {
  font-size: 0.74rem;
  color: var(--gold-primary);
  line-height: 1.3;
}

/* Proof Metrics Strip */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.proof-card .metric-lbl {
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.proof-card .metric-val {
  font-size: 1.10rem;
  font-weight: 800;
  color: var(--text-primary);
}

.proof-card .metric-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 7. Section Shared Styles */
.section {
  padding: 75px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-eyebrow {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.05rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.35;
  color: var(--text-primary);
}

.section-lead {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.85;
  text-align: center;
}

/* 8. Core Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--gold-gradient-subtle);
  border: 1px solid var(--border-hover);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-num {
  position: absolute;
  top: 22px;
  left: 22px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dim);
  opacity: 0.4;
  font-family: inherit;
}

html[dir="ltr"] .service-num {
  left: auto;
  right: 22px;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  text-align: right;
  word-spacing: normal;
}

html[dir="ltr"] .service-desc {
  text-align: left;
}

/* 9. About Section */
.about-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 42px 40px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.about-content h3 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.4;
  color: var(--text-primary);
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.00rem;
  line-height: 1.95;
  margin-bottom: 16px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pillar-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pillar-item svg {
  color: var(--gold-primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-item h5 {
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.pillar-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* 10. Expertise Accordion */
.accordion-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item:hover,
.accordion-item.active {
  border-color: var(--border-hover);
}

.accordion-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.accordion-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.accordion-num {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--gold-primary);
  background: var(--badge-bg);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.accordion-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.accordion-icon {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--gold-primary);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
}

.accordion-item.active .accordion-body {
  max-height: 500px;
  transition: max-height 0.4s ease-in-out;
  padding-bottom: 20px;
}

.accordion-content-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-content-list li {
  font-size: 0.90rem;
  color: var(--text-secondary);
  position: relative;
  padding-right: 18px;
  line-height: 1.7;
  text-align: right;
}

html[dir="ltr"] .accordion-content-list li {
  padding-right: 0;
  padding-left: 18px;
}

.accordion-content-list li::before {
  content: '•';
  position: absolute;
  right: 0;
  color: var(--gold-primary);
  font-size: 1.3rem;
  line-height: 1;
}

html[dir="ltr"] .accordion-content-list li::before {
  right: auto;
  left: 0;
}

/* 11. Process Steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: var(--transition);
}

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

.step-num-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gold-gradient);
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  font-weight: 900;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
}

.step-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.75;
  text-align: right;
}

html[dir="ltr"] .step-desc {
  text-align: left;
}

/* 12. Documents Checklist */
.docs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  align-items: center;
}

.docs-copy h3 {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.docs-copy p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.8;
  text-align: right;
}

html[dir="ltr"] .docs-copy p {
  text-align: left;
}

.docs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.docs-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.90rem;
  color: var(--text-primary);
  font-weight: 600;
}

.docs-list li svg {
  color: var(--gold-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* 13. Contact & Direct Coordination */
.contact-section {
  padding-bottom: 85px;
}

.contact-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-opt-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.contact-opt-link:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.opt-info-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.opt-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gold-gradient-subtle);
  border: 1px solid var(--border-hover);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.opt-text h4 {
  font-size: 1.02rem;
  font-weight: 800;
}

.opt-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.opt-arrow {
  color: var(--gold-primary);
  transition: transform 0.3s ease;
}

.contact-opt-link:hover .opt-arrow {
  transform: translateX(-4px);
}

html[dir="ltr"] .contact-opt-link:hover .opt-arrow {
  transform: translateX(4px);
}

.contact-tips-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-tips-box h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.tip-item {
  border-right: 3px solid var(--gold-primary);
  padding-right: 12px;
}

html[dir="ltr"] .tip-item {
  border-right: none;
  border-left: 3px solid var(--gold-primary);
  padding-right: 0;
  padding-left: 12px;
}

.tip-item h5 {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--text-primary);
}

.tip-item p {
  font-size: 0.80rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: right;
}

html[dir="ltr"] .tip-item p {
  text-align: left;
}

/* 14. Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 45px 0 25px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.footer-brand h4 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--gold-primary);
  margin-top: 2px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.80rem;
  color: var(--text-dim);
}

/* 15. Responsive Media Queries */
@media (max-width: 1240px) {
  .btn-primary.nav-cta {
    display: none;
  }
  .nav-menu {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.86rem;
    padding: 5px 8px;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  
  .eyebrow-badge {
    margin: 0 auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .trust-strip {
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-box,
  .docs-card,
  .contact-card-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px;
  }
}

@media (max-width: 960px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    right: 0;
    left: 0;
    background: var(--bg-elevated);
    border-bottom: 2px solid var(--border-subtle);
    padding: 16px 20px 24px;
    flex-direction: column;
    gap: 8px;
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
  }
  
  .nav-menu.open {
    display: flex;
  }

  .nav-menu .nav-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    text-align: right;
  }

  html[dir="ltr"] .nav-menu .nav-link {
    text-align: left;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    background: var(--badge-bg);
    border-color: var(--badge-border);
    color: var(--gold-primary);
  }

  .nav-menu .nav-link::after {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .btn-primary.nav-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 42px 0;
  }

  .section-header {
    margin-bottom: 26px;
    gap: 6px;
  }

  .section-title {
    font-size: 1.45rem;
    line-height: 1.35;
  }

  .section-lead {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .section-eyebrow {
    font-size: 0.78rem;
  }

  .site-header {
    padding: 10px 0;
  }
  
  .site-header .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .navbar {
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 0.92rem;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  #theme-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  #theme-toggle .text {
    display: none;
  }

  #lang-toggle {
    padding: 5px 9px;
    font-size: 0.76rem;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: 25px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 1.55rem;
    line-height: 1.45;
  }

  .hero-lead {
    font-size: 0.88rem;
    line-height: 1.8;
  }

  .eyebrow-badge {
    font-size: 0.74rem;
    padding: 5px 12px;
    line-height: 1.4;
    text-align: center;
  }

  /* Full-width vertical stack for CTA buttons to prevent any deformation or multi-line wrap */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 24px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
  }

  .trust-strip {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.80rem;
  }

  .hero-portrait-card {
    max-width: 300px;
    margin: 0 auto;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 24px;
  }

  .proof-card {
    padding: 14px 10px;
    text-align: center;
  }

  .proof-val {
    font-size: 1.10rem;
    font-weight: 900;
  }

  .proof-lbl {
    font-size: 0.78rem;
    font-weight: 700;
  }

  .proof-desc {
    display: block;
    font-size: 0.70rem;
    opacity: 0.85;
    margin-top: 2px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 5px;
    padding: 16px 16px 16px 16px;
    border-radius: var(--radius-lg);
    min-height: auto;
    align-items: start;
    position: relative;
  }

  .service-num {
    position: absolute;
    top: 14px;
    left: 16px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gold-primary);
    opacity: 0.75;
  }

  html[dir="ltr"] .service-num {
    left: auto;
    right: 16px;
  }

  .service-icon-box {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    margin-top: 2px;
    flex-shrink: 0;
  }

  .service-icon-box svg {
    width: 22px;
    height: 22px;
  }

  .service-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    padding-left: 30px;
  }

  html[dir="ltr"] .service-title {
    padding-left: 0;
    padding-right: 30px;
  }

  .service-desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.88rem;
    line-height: 1.68;
    color: var(--text-secondary);
    text-align: right;
    word-spacing: normal;
  }

  .about-content p {
    text-align: right;
  }

  .about-box {
    padding: 20px 12px;
    gap: 16px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pillar-item {
    padding: 14px 14px;
    border-radius: var(--radius-md);
    gap: 12px;
    align-items: center;
  }

  .pillar-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .pillar-icon svg {
    width: 18px;
    height: 18px;
  }

  .pillar-text h4 {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 3px;
  }

  .pillar-text p {
    font-size: 0.84rem;
    line-height: 1.55;
    text-align: right;
  }

  .accordion-header {
    padding: 14px 16px;
    gap: 10px;
  }

  .accordion-num {
    font-size: 0.82rem;
    padding: 2px 7px;
  }

  .accordion-title {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .accordion-body {
    padding: 0 16px;
  }

  .accordion-item.active .accordion-body {
    padding-bottom: 16px;
  }

  .accordion-content-list li {
    font-size: 0.86rem;
    padding-right: 14px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 5px;
    padding: 16px 16px;
    border-radius: var(--radius-lg);
    min-height: auto;
    align-items: start;
  }

  .step-num-badge {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
    margin-bottom: 0;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    margin-top: 2px;
  }

  .step-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
  }

  .step-desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.86rem;
    line-height: 1.65;
    margin: 0;
    text-align: right;
  }

  .docs-card {
    padding: 22px 16px;
    gap: 18px;
  }

  .docs-list li {
    padding: 10px 14px;
    font-size: 0.84rem;
  }

  .contact-card-main {
    padding: 22px 16px;
    gap: 20px;
  }

  .contact-opt-link {
    padding: 14px 16px;
  }

  .opt-icon-box {
    width: 40px;
    height: 40px;
  }

  .opt-text h4 {
    font-size: 0.95rem;
  }

  .opt-text p {
    font-size: 0.78rem;
  }

  .consult-tips {
    padding: 18px 14px;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-nav {
    justify-content: center;
    gap: 12px 16px;
  }
}

/* Print Overrides */
@media print {
  .site-header {
    position: static;
    background: #ffffff;
    border-bottom: 2px solid #000;
  }
  .bg-ambient,
  .nav-actions,
  .menu-toggle {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}
