/* ============================================
   FINEXSA CAPITAL — Shared Design System
   ============================================ */

:root {
  /* Palette — deep midnight + antique gold */
  --bg-void:       #0A0E1A;
  --bg-deep:       #0F1220;
  --bg-card:       #141827;
  --bg-card-hover: #1A1F32;
  --navy:          #1E2A5A;
  --navy-light:    #2A3A7A;
  --gold:          #C9A227;
  --gold-bright:   #E6BC3F;
  --gold-muted:    rgba(201, 162, 39, 0.15);
  --text-primary:  #EDEEF2;
  --text-muted:    #8B92A8;
  --text-dim:      #5C6378;
  --border:        rgba(201, 162, 39, 0.12);
  --border-strong: rgba(201, 162, 39, 0.35);
  --shadow-gold:   0 20px 60px -20px rgba(201, 162, 39, 0.25);

  /* Typography */
  --font-arabic:   'Tajawal', -apple-system, sans-serif;
  --font-display:  'Cormorant Garamond', Georgia, serif;

  /* Spacing */
  --container:     1280px;
  --radius:        14px;
}

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

html {
  scroll-behavior: smooth;
}

/* ============ Default SVG sizing (prevent oversize) ============ */
svg {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}


body {
  font-family: var(--font-arabic);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(30, 42, 90, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(201, 162, 39, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  z-index: 1;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

a { text-decoration: none; color: inherit; }

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 22px;
  color: var(--gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.08em;
}

.brand-sub {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.25s ease;
  position: relative;
  padding: 6px 0;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--bg-void);
  padding: 11px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid var(--gold);
}

.nav-cta:hover {
  background: transparent;
  color: var(--gold);
  box-shadow: 0 0 24px -4px var(--gold-muted);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: 100px 0 80px;
  position: relative;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--gold-muted);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 900px;
  margin-inline: auto;
  letter-spacing: -0.01em;
}

.hero-title .accent {
  color: var(--gold);
  font-weight: 800;
  font-style: normal;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.9;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-void);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   SERVICE-DETAIL HERO (for service pages)
   ============================================ */

.service-hero {
  padding: 80px 0 70px;
  position: relative;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 24px;
}

.back-link:hover {
  color: var(--gold);
  border-color: var(--border-strong);
  gap: 14px;
}

.service-hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.service-hero-icon {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--bg-card));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.service-hero-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-muted), transparent);
  opacity: 0.5;
}

.service-hero-icon svg {
  width: 60px;
  height: 60px;
  stroke: var(--gold);
  stroke-width: 1.3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}

.service-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-arabic);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.service-hero-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.service-hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.service-hero-tagline {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 680px;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 80px 0;
  position: relative;
}

.section.compact {
  padding: 60px 0;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
  padding-right: 40px;
}

.section-label::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  max-width: 780px;
}

.section-title .italic {
  color: var(--gold);
  font-weight: 800;
  font-style: normal;
}

.section-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.95;
  margin-bottom: 16px;
}

.section-lead + .section-lead {
  margin-top: 20px;
}

.section-head-centered {
  text-align: center;
}

.section-head-centered .section-label {
  padding-right: 0;
}

.section-head-centered .section-label::before {
  display: none;
}

.section-head-centered .section-title,
.section-head-centered .section-lead {
  margin-inline: auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--gold); font-size: 12px; }
.breadcrumb .current { color: var(--gold); font-weight: 500; }

/* ============================================
   SERVICES GRID (main page)
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-muted), transparent);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--gold) 50%, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  border-color: transparent;
}

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

.service-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), transparent);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border-color: var(--gold);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s ease;
}

.service-card:hover .service-icon svg {
  stroke: var(--bg-void);
}

.service-number {
  position: absolute;
  top: 24px;
  inset-inline-end: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.service-card:hover .service-title {
  color: var(--gold-bright);
}

.service-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 24px;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: gap 0.3s ease;
}

.service-link-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.service-card:hover .service-link { gap: 14px; }
.service-card:hover .service-link-arrow { transform: translateX(-4px); }

/* ============================================
   FEATURES LIST (on service detail pages)
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s ease;
}

.feature-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateX(-4px);
}

.feature-check {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--gold-muted);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
}

.feature-text {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.7;
}

.feature-text strong {
  color: var(--gold-bright);
  font-weight: 700;
}

/* ============================================
   AUDIENCE LIST
   ============================================ */

.audience-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.audience-item {
  padding: 20px 24px;
  background: var(--bg-card);
  border-right: 3px solid var(--gold);
  border-radius: 6px;
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.audience-item:hover {
  background: var(--bg-card-hover);
  border-right-width: 5px;
  padding-right: 22px;
}

/* ============================================
   PROCESS / STEPS
   ============================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}

.process-step {
  position: relative;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s ease;
}

.process-step:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.process-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.9;
  letter-spacing: -0.02em;
}

.process-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.process-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================
   RELATED SERVICES
   ============================================ */

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.related-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.3s ease;
}

.related-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.related-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--gold-muted);
  border-radius: 12px;
}

.related-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.related-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.related-link {
  font-size: 12px;
  color: var(--gold);
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
  margin: 80px 0;
  padding: 64px 56px;
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-card));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, var(--gold-muted), transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
}

.cta-title .italic {
  color: var(--gold);
  font-weight: 800;
  font-style: normal;
}

.cta-text {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 32px;
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 60px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.9;
  margin-top: 16px;
  max-width: 320px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--gold); }

.footer-contact {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 2;
}

.footer-contact a { color: var(--text-muted); transition: color 0.2s; }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 13px;
}

.footer-bottom a { color: var(--gold); }

/* ============================================
   FADE-IN
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .features-grid   { grid-template-columns: 1fr; }
  .audience-list   { grid-template-columns: repeat(2, 1fr); }
  .process-grid    { grid-template-columns: repeat(2, 1fr); }
  .related-grid    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links       { display: none; }
  .hero, .service-hero { padding: 60px 0 40px; }
  .section         { padding: 60px 0; }
  .cta-banner      { padding: 40px 24px; }
  .service-hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .service-hero-icon { margin: 0 auto; }
}

@media (max-width: 620px) {
  .services-grid   { grid-template-columns: 1fr; }
  .audience-list   { grid-template-columns: 1fr; }
  .process-grid    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; }
  .container       { padding: 0 20px; }
  .hero-cta-group  { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .service-card    { min-height: auto; }
  .service-hero-icon { width: 96px; height: 96px; }
  .service-hero-icon svg { width: 48px; height: 48px; }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 50px;
}

.about-text .section-lead {
  margin-bottom: 18px;
}

.branches {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

.branch-card {
  position: relative;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s ease;
}

.branch-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateX(-4px);
}

.branch-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.branch-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.branch-location {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 6px;
}

.branch-location::before {
  content: "📍";
}

.branch-phones {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.branch-phones a {
  color: var(--text-muted);
  font-size: 14px;
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.branch-phones a:hover { color: var(--gold); }
.branch-phones a.phone-mobile::before { content: "📱"; font-size: 13px; }
.branch-phones a.phone-landline::before { content: "☎"; font-size: 14px; color: var(--gold); }
/* fallback: إذا ما في class، يستخدم الأيقونة الموحدة */
.branch-phones a:not(.phone-mobile):not(.phone-landline)::before { content: "📞"; font-size: 13px; }

/* ============================================
   TEAM SECTION
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.team-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px 24px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  text-align: center;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(225deg, var(--gold-muted), transparent);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px -15px rgba(201, 162, 39, 0.2);
}

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

.team-photo-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border: 3px solid var(--border-strong);
  transition: all 0.4s ease;
}

.team-card:hover .team-photo-wrap {
  border-color: var(--gold);
  box-shadow: 0 0 30px -5px var(--gold-muted);
}

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

.team-card:hover .team-photo-wrap img {
  transform: scale(1.06);
}

/* Placeholder avatar */
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--gold);
  opacity: 0.45;
}

.team-photo-placeholder svg {
  width: 60px;
  height: 60px;
  stroke: currentColor;
  stroke-width: 1.3;
  fill: none;
}

.team-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.team-card.is-placeholder .team-name { color: var(--text-dim); font-style: normal; }

.team-card:hover .team-name { color: var(--gold-bright); }

.team-role {
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  min-height: 38px;
}

.team-card.is-placeholder .team-role { color: var(--text-dim); }

.team-branch {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.team-branch::before { content: "📍"; font-size: 11px; }

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.team-social-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.team-social-btn:hover {
  background: var(--gold);
  color: var(--bg-void);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.team-social-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   FINEXSA ONE — Showcase section
   ============================================ */

.showcase {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.showcase::before {
  content: "";
  position: absolute;
  inset: 40px 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(201, 162, 39, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, transparent, rgba(30, 42, 90, 0.3), transparent);
  pointer-events: none;
}

.showcase-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--gold-muted);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.showcase-badge .star {
  color: var(--gold);
  font-size: 14px;
  animation: twinkle 2.5s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50%      { opacity: 0.7; transform: scale(1.15) rotate(180deg); }
}

.showcase-name {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, #8B6F1A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.showcase-subtitle {
  font-size: 20px;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 20px;
}

.showcase-lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.95;
  margin-bottom: 30px;
}

.showcase-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.showcase-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.showcase-feature:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.showcase-feature-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 15px;
}

.showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg-void);
  padding: 15px 34px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--gold);
  box-shadow: 0 10px 30px -10px var(--gold-muted);
  transition: all 0.3s ease;
}

.showcase-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px -10px rgba(201, 162, 39, 0.5);
}

.showcase-note {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  font-style: normal;
}

/* Mockup visual */
.showcase-visual {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-deep));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 28px;
  overflow: hidden;
}

.showcase-visual::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
  width: 50px;
  height: 10px;
  background-image:
    radial-gradient(circle at 5px 5px, #FF5F56 4px, transparent 4px),
    radial-gradient(circle at 22px 5px, #FFBD2E 4px, transparent 4px),
    radial-gradient(circle at 39px 5px, #27C93F 4px, transparent 4px);
  border-radius: 2px;
}

.mockup {
  margin-top: 30px;
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  height: calc(100% - 34px);
  display: flex;
  flex-direction: column;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.mockup-title {
  font-size: 15px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.mockup-tag {
  font-size: 10px;
  color: var(--text-dim);
  padding: 3px 9px;
  background: var(--gold-muted);
  border-radius: 8px;
  font-weight: 600;
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.mockup-stat {
  padding: 10px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.mockup-stat-label {
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.mockup-stat-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.mockup-stat-value.positive { color: #4ADE80; }
.mockup-stat-value.gold     { color: var(--gold); }

.mockup-chart {
  flex: 1;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 14px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 80px;
}

.mockup-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--gold), rgba(201, 162, 39, 0.3));
  border-radius: 3px 3px 0 0;
  animation: barRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes barRise {
  from { height: 0 !important; opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================
   TEAM GRID RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .team-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-grid   { grid-template-columns: 1fr; gap: 40px; }
  .showcase-inner { grid-template-columns: 1fr; gap: 40px; }
  .showcase-features { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .team-grid    { grid-template-columns: 1fr; gap: 18px; }
  .team-photo-wrap { width: 130px; height: 130px; }
}


/* ============================================
   PARTNER SECTION (Mizan.net)
   ============================================ */

.partner-row {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 30px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.partner-block {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 280px;
}

.partner-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.4s ease;
  text-decoration: none;
}

.partner-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.partner-logo {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-card));
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 8px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.partner-link:hover .partner-logo {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border-color: var(--gold);
}

.partner-logo svg {
  width: 40px;
  height: 40px;
  display: block;
  transition: all 0.3s ease;
}

.partner-link:hover .partner-logo svg line,
.partner-link:hover .partner-logo svg circle,
.partner-link:hover .partner-logo svg path,
.partner-link:hover .partner-logo svg rect {
  stroke: var(--bg-void) !important;
  fill: var(--bg-void) !important;
}

.partner-info {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.partner-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.partner-subtitle {
  font-size: 12px;
  color: var(--gold);
}

/* Social icons */
.social-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--gold);
  color: var(--bg-void);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -6px var(--gold-muted);
}

.social-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* ============================================
   LEGAL PAGES (privacy.html, terms.html)
   ============================================ */

.legal-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.legal-hero .section-label {
  padding-right: 0;
}
.legal-hero .section-label::before { display: none; }

.legal-content {
  padding: 40px 0 100px;
}

.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 48px;
}

.legal-wrap h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  margin: 32px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.legal-wrap h2:first-child { margin-top: 0; }

.legal-wrap h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 22px 0 8px;
}

.legal-wrap p {
  font-size: 15px;
  line-height: 2;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.legal-wrap ul {
  list-style: none;
  padding-right: 20px;
  margin-bottom: 16px;
}

.legal-wrap ul li {
  position: relative;
  padding-right: 22px;
  margin-bottom: 10px;
  color: var(--text-muted);
  line-height: 1.9;
}

.legal-wrap ul li::before {
  content: "◆";
  position: absolute;
  right: 0;
  color: var(--gold);
  font-size: 11px;
  top: 8px;
}

.legal-wrap strong { color: var(--text-primary); font-weight: 700; }

.legal-date {
  display: inline-block;
  font-size: 13px;
  color: var(--text-dim);
  padding: 6px 14px;
  background: var(--gold-muted);
  border-radius: 20px;
  margin-bottom: 24px;
}

@media (max-width: 620px) {
  .legal-wrap { padding: 32px 22px; }
  .partner-row { flex-direction: column; align-items: flex-start; }
  .social-block { align-items: flex-start; }
}


/* ============================================
   MOBILE: Burger Menu + Drawer
   ============================================ */

.burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: all 0.3s ease;
  z-index: 110;
}

.burger-btn:hover {
  background: var(--gold-muted);
  border-color: var(--gold);
}

.burger-line {
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-btn.is-open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.is-open .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn.is-open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-void));
  border-right: 1px solid var(--border-strong);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  padding: 100px 28px 32px;
  z-index: 105;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: none;
}

.mobile-drawer.is-open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 102;
  display: none;
}

.mobile-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.mobile-drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.mobile-drawer-links a::before {
  content: "→";
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a.active {
  background: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--gold);
}

.mobile-drawer-links a:hover::before,
.mobile-drawer-links a.active::before {
  transform: translateX(-4px);
}

.mobile-drawer-cta {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg-void) !important;
  padding: 16px 24px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  border: 1px solid var(--gold) !important;
  margin-top: 20px;
}

.mobile-drawer-cta::before {
  display: none !important;
}

.mobile-drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.mobile-drawer-contact {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 20px;
}

.mobile-drawer-contact-label {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
}

.mobile-drawer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer-contact a:last-child {
  border-bottom: none;
}

.mobile-drawer-contact a:hover {
  color: var(--gold);
}

/* Lock body scroll when drawer open */
body.drawer-open {
  overflow: hidden;
}


/* ============================================
   MOBILE: Comprehensive improvements
   ============================================ */

@media (max-width: 860px) {
  /* Show burger, hide desktop nav */
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .burger-btn { display: flex !important; }
  .mobile-drawer { display: block; }
  .mobile-drawer-overlay { display: block; }

  /* Container padding */
  .container { padding: 0 18px; }

  /* Navbar */
  .nav-inner { padding: 14px 0; }
  .brand-mark { width: 38px; height: 38px; font-size: 18px; }
  .brand-name { font-size: 17px; letter-spacing: 0.05em; }
  .brand-sub { font-size: 9px; }

  /* Hero */
  .hero { padding: 50px 0 30px; }
  .hero-tag {
    padding: 7px 14px;
    font-size: 12px;
    margin-bottom: 20px;
  }
  .hero-title {
    font-size: 32px !important;
    line-height: 1.25;
    margin-bottom: 18px;
  }
  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.7;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 14px;
  }

  /* Sections general */
  .section { padding: 50px 0; }
  .section.compact { padding: 36px 0; }
  .section-label { font-size: 11px; letter-spacing: 0.2em; padding-right: 30px; }
  .section-title {
    font-size: 24px !important;
    line-height: 1.4;
  }
  .section-lead { font-size: 14.5px; line-height: 1.85; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .branch-card { padding: 22px 20px; }
  .branch-title { font-size: 19px; }

  /* Services grid - 1 column */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
  }
  .service-card {
    padding: 32px 24px 28px;
    min-height: auto;
  }
  .service-icon { width: 56px; height: 56px; margin-bottom: 18px; }
  .service-icon svg { width: 26px; height: 26px; }
  .service-title { font-size: 19px; }
  .service-desc { font-size: 14px; line-height: 1.8; }

  /* Team grid - 1 column with smaller cards */
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
    margin-top: 40px;
  }
  .team-card {
    padding: 22px 20px 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: start;
    gap: 18px;
  }
  .team-photo-wrap {
    width: 88px;
    height: 88px;
    margin: 0;
    flex-shrink: 0;
  }
  .team-name {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .team-role {
    font-size: 12px;
    margin-bottom: 6px;
    min-height: auto;
  }
  .team-branch {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .team-card-info {
    flex: 1;
    min-width: 0;
  }
  .team-social {
    padding-top: 10px;
    gap: 8px;
    justify-content: flex-start;
    border-top: 1px solid var(--border);
  }
  .team-social-btn { width: 32px; height: 32px; }
  .team-social-btn svg { width: 13px; height: 13px; }

  /* Showcase / FINEXSA One */
  .showcase { padding: 60px 0; }
  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .showcase-name { font-size: 42px !important; }
  .showcase-subtitle { font-size: 17px; }
  .showcase-lead { font-size: 14.5px; line-height: 1.85; }
  .showcase-features { grid-template-columns: 1fr; gap: 10px; }
  .showcase-feature { padding: 11px 14px; font-size: 13px; }
  .showcase-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
    font-size: 14px;
  }

  /* Showcase mockup - keep but smaller */
  .showcase-visual {
    aspect-ratio: 16/11;
    padding: 18px;
    border-radius: 14px;
  }
  .showcase-visual::before {
    width: 36px;
    height: 7px;
    background-image:
      radial-gradient(circle at 4px 4px, #FF5F56 3px, transparent 3px),
      radial-gradient(circle at 16px 4px, #FFBD2E 3px, transparent 3px),
      radial-gradient(circle at 28px 4px, #27C93F 3px, transparent 3px);
  }
  .mockup { padding: 14px; margin-top: 22px; }
  .mockup-title { font-size: 13px; }
  .mockup-tag { font-size: 9px; padding: 2px 7px; }
  .mockup-stats { gap: 8px; margin-bottom: 12px; }
  .mockup-stat { padding: 8px; }
  .mockup-stat-label { font-size: 8px; }
  .mockup-stat-value { font-size: 13px; }
  .mockup-chart { padding: 10px; min-height: 60px; }

  /* CTA Banner */
  .cta-banner {
    padding: 36px 22px;
    margin: 50px 0;
    border-radius: 16px;
  }
  .cta-title { font-size: 24px !important; line-height: 1.4; }
  .cta-text { font-size: 14.5px; margin-bottom: 24px; }

  /* Footer */
  .footer { padding: 48px 0 24px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }
  .footer-brand-text { font-size: 13.5px; }
  .footer h4 { font-size: 13px; margin-bottom: 16px; }
  .footer-links a, .footer-contact { font-size: 13.5px; }

  /* Partner row */
  .partner-row {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px 0;
  }
  .partner-block,
  .social-block {
    align-items: center;
    text-align: center;
  }
  .partner-block > div,
  .social-block {
    width: 100%;
  }
  .partner-link {
    justify-content: center;
    padding: 14px 16px;
  }
  .social-icons {
    justify-content: center;
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    font-size: 12px;
  }

  /* Service detail pages */
  .service-hero { padding: 50px 0 30px; }
  .back-link { font-size: 13px; padding: 7px 14px; margin-bottom: 22px; }
  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }
  .service-hero-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 18px;
  }
  .service-hero-icon svg { width: 44px; height: 44px; }
  .service-hero-meta { justify-content: center; font-size: 13px; }
  .service-hero-title { font-size: 26px !important; }
  .service-hero-tagline { font-size: 14.5px; }

  .features-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .feature-item { padding: 18px 20px; gap: 14px; }
  .feature-text { font-size: 14px; }

  .audience-list { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .audience-item { padding: 14px 18px; font-size: 13.5px; }

  .process-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .process-step { padding: 24px 20px; }
  .process-num { font-size: 36px; }
  .process-title { font-size: 16px; }
  .process-desc { font-size: 13.5px; }

  .related-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .related-card { padding: 20px 18px; gap: 14px; }
  .related-title { font-size: 14px; }

  /* Login page */
  .login-page { padding: 16px; }
  .login-card { padding: 32px 22px; border-radius: 18px; }
  .login-logo-mark { width: 64px; height: 64px; font-size: 30px; border-radius: 18px; }
  .login-title { font-size: 22px; }
  .login-subtitle { font-size: 13px; }
  .form-input { padding: 13px 14px; font-size: 14px; }
  .btn-login { padding: 14px; font-size: 14px; }
  .login-help { font-size: 12px; }

  /* Dashboard */
  .app-bar { padding: 12px 16px; }
  .app-bar .brand-mark { width: 36px; height: 36px; }
  .app-bar .brand-name { font-size: 16px; }
  .user-info-text { display: none; }
  .btn-logout { padding: 8px 12px; font-size: 12px; }
  .dashboard-content { padding: 24px 16px; }
  .company-header { padding: 26px 20px; border-radius: 16px; margin-bottom: 24px; }
  .company-name { font-size: 22px; }
  .company-desc { font-size: 13px; }
  .year-tabs { gap: 6px; margin-bottom: 22px; }
  .year-tab { padding: 9px 16px; font-size: 13px; }
  .reports-grid { grid-template-columns: 1fr; gap: 14px; }
  .report-card { padding: 22px 20px; }
  .report-icon { font-size: 32px; }
  .report-title { font-size: 16px; }

  /* Viewer */
  .viewer-header { padding: 12px 14px; flex-wrap: wrap; gap: 10px; }
  .viewer-title {
    font-size: 13px;
    flex-basis: 100%;
    order: -1;
    margin-bottom: 4px;
  }
  .btn-back { padding: 8px 14px; font-size: 12px; }
  .btn-tool { padding: 8px 12px; font-size: 11px; }
  .viewer-container { padding: 14px; }
  .zoom-controls { bottom: 14px; left: 14px; padding: 6px; }
  .zoom-btn { width: 34px; height: 34px; font-size: 16px; }
  .zoom-level { font-size: 12px; min-width: 48px; }

  /* Legal pages */
  .legal-hero { padding: 60px 0 24px; }
  .legal-content { padding: 24px 0 60px; }
  .legal-wrap { padding: 28px 22px; border-radius: 14px; }
  .legal-wrap h2 { font-size: 19px; margin: 24px 0 12px; }
  .legal-wrap h3 { font-size: 15.5px; margin: 18px 0 6px; }
  .legal-wrap p, .legal-wrap ul li { font-size: 14px; line-height: 1.85; }
}

/* Extra small phones */
@media (max-width: 380px) {
  .hero-title { font-size: 28px !important; }
  .section-title { font-size: 22px !important; }
  .showcase-name { font-size: 36px !important; }
  .container { padding: 0 14px; }
  .team-card { padding: 18px 16px 14px; gap: 14px; }
  .team-photo-wrap { width: 76px; height: 76px; }
  .login-card { padding: 28px 18px; }
}


/* ============================================
   Branch Card with QR Code
   ============================================ */

.branch-content {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}

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

a.branch-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

a.branch-location::before {
  content: "📍";
  font-size: 14px;
}

a.branch-location:hover {
  color: var(--gold);
}

.branch-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  background: #FFFFFF;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
}

.branch-qr:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px var(--gold-muted);
}

.branch-qr .qr-svg {
  width: 90px;
  height: 90px;
  display: block;
  border-radius: 4px;
}

.branch-qr img.qr-svg {
  background: #FFFFFF;
}

.branch-qr-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--bg-void);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .branch-content {
    gap: 14px;
  }
  .branch-qr {
    padding: 8px;
  }
  .branch-qr .qr-svg {
    width: 76px;
    height: 76px;
  }
  .branch-qr-label {
    font-size: 9px;
  }
}


/* ============================================
   CLOUD HOSTING SECTION
   ============================================ */

.showcase-alt {
  background: linear-gradient(180deg, transparent, rgba(0, 122, 255, 0.04), transparent);
}

.showcase-alt::before {
  content: "";
  position: absolute;
  inset: 40px 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.4), transparent);
  pointer-events: none;
}

.showcase-inner.reverse {
  direction: ltr;
}
.showcase-inner.reverse > div {
  direction: rtl;
}

.showcase-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  border: 1.5px solid var(--border-strong);
  border-radius: 30px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-right: 12px;
}

.showcase-cta-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hosting-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* Server Rack Mockup */
.hosting-mockup {
  position: relative;
  background: linear-gradient(135deg, #0F172A, #1E293B);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.hosting-mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hosting-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.hosting-mockup-dots {
  display: flex;
  gap: 6px;
}

.hosting-mockup-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #FF5F56;
}

.hosting-mockup-dots span:nth-child(2) { background: #FFBD2E; }
.hosting-mockup-dots span:nth-child(3) { background: #27C93F; }

.hosting-mockup-title {
  font-size: 13px;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hosting-server-rack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.server-unit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.server-unit.active {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.04);
}

.server-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #22C55E; }
  50% { opacity: 0.5; box-shadow: 0 0 4px #22C55E; }
}

.server-label {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: #E2E8F0;
  letter-spacing: 0.1em;
  font-family: 'Courier New', monospace;
}

.server-status {
  font-size: 10px;
  font-weight: 800;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.1em;
}

.hosting-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hosting-stat {
  text-align: center;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.hosting-stat-num {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #38BDF8;
  margin-bottom: 2px;
}

.hosting-stat-lbl {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.15em;
}

@media (max-width: 860px) {
  .showcase-inner.reverse { display: flex; flex-direction: column-reverse; }
  .hosting-mockup { padding: 18px; }
  .hosting-cta-group { flex-direction: column; align-items: stretch; gap: 10px; }
  .showcase-cta-secondary { width: 100%; justify-content: center; margin-right: 0; }
}


/* ============================================
   PRICING / PACKAGES (Hosting page)
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 28px 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.4);
}

.pricing-card-featured {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.06), rgba(201, 162, 39, 0.02));
  border-color: var(--border-strong);
  transform: scale(1.03);
  box-shadow: 0 15px 40px -10px var(--gold-muted);
}

.pricing-card-featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.pricing-tag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg-void);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 16px -4px var(--gold-muted);
}

.pricing-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.pricing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pricing-card-featured .pricing-badge {
  color: var(--gold);
}

.pricing-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-coming {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-muted), rgba(201, 162, 39, 0.15));
  color: var(--gold-bright);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px dashed var(--border-strong);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.pricing-features li {
  position: relative;
  padding: 10px 22px 10px 0;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
}

.pricing-card-featured .pricing-features li {
  color: var(--text-primary);
}

.pricing-btn {
  display: block;
  text-align: center;
  background: var(--bg-deep);
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.pricing-btn-featured {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg-void);
  border-color: var(--gold);
  box-shadow: 0 8px 20px -6px var(--gold-muted);
}

.pricing-btn-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -8px rgba(201, 162, 39, 0.5);
}

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; gap: 18px; margin-top: 36px; }
  .pricing-card-featured { transform: none; }
  .pricing-card-featured:hover { transform: translateY(-6px); }
}

@media (max-width: 520px) {
  .pricing-card { padding: 28px 22px 24px; }
  .pricing-name { font-size: 24px; }
}

/* ============================================
   LANGUAGE SWITCHER (i18n)
   ============================================ */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 0 14px;
}

.lang-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-switch button:hover {
  color: var(--text-primary);
}

.lang-switch button.is-active {
  background: var(--gold);
  color: var(--bg-void);
}

/* Mobile drawer variant */
.mobile-drawer .lang-switch {
  margin: 18px 0 0;
  align-self: flex-start;
}

@media (max-width: 980px) {
  .nav-inner > .lang-switch { display: none; }
}

/* ============================================
   LTR LANGUAGE SUPPORT
   ============================================
   The site was built RTL-first. These rules handle
   the LTR (English) version cleanly without rewriting
   existing CSS — they only flip what direction-aware
   pseudo-elements and arrows demand. */

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

html[dir="ltr"] .nav-links a::after {
  right: auto;
  left: 0;
}

/* Phone numbers stay LTR by nature; text-align should follow flow */
html[dir="ltr"] .footer-contact div[style*="direction: ltr"] {
  text-align: left !important;
}

/* Arrow indicators in LTR pages (← becomes → contextually).
   Use a class hook on elements that contain a one-way arrow. */
html[dir="ltr"] .arrow-back::before { content: "← "; }
html[dir="ltr"] .arrow-fwd::after   { content: " →"; }
html[dir="rtl"] .arrow-back::before { content: "→ "; }
html[dir="rtl"] .arrow-fwd::after   { content: " ←"; }

/* Service link arrow flips between LTR/RTL */
html[dir="ltr"] .service-link-arrow,
html[dir="ltr"] .related-link {
  display: inline-block;
  transform: scaleX(-1);
}

html[dir="ltr"] .related-link {
  transform: none;
}
html[dir="ltr"] .related-link::after {
  content: " →";
}
html[dir="ltr"] .related-link::before { content: ""; }

/* Section breadcrumb separator stays neutral (▸) — no flip needed */

/* QR labels and small captions: ensure proper alignment */
html[dir="ltr"] .branch-qr-label,
html[dir="ltr"] .partner-label,
html[dir="ltr"] .showcase-note {
  text-align: left;
}

/* Cards that use right-aligned text should follow flow */
html[dir="ltr"] .branch-card,
html[dir="ltr"] .feature-text,
html[dir="ltr"] .audience-item,
html[dir="ltr"] .process-desc,
html[dir="ltr"] .footer-brand-text {
  text-align: left;
}

/* Mobile drawer flips to slide from left in LTR */
html[dir="ltr"] .mobile-drawer {
  right: auto;
  left: -100%;
  border-right: 0;
  border-left: 1px solid var(--border-strong);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
html[dir="ltr"] .mobile-drawer.is-open {
  right: auto;
  left: 0;
}

/* Service-card arrow direction in LTR (the ← becomes →) */
html[dir="ltr"] .service-card:hover .service-link-arrow {
  transform: translateX(4px) scaleX(-1);
}

/* Back-link arrow on service detail pages */
html[dir="ltr"] .back-link {
  flex-direction: row-reverse;
}
