/* ==========================================================================
   Eastern Silk Road — main stylesheet
   ========================================================================== */

:root {
  --navy-900: #0a1830;
  --navy-800: #0b1f3a;
  --navy-700: #14315c;
  --navy-600: #1c3a68;
  --gold-400: #f0d98c;
  --gold-500: #d8b563;
  --gold-600: #c9a24b;
  --gold-700: #9c7a2e;
  --sand-100: #faf6ee;
  --sand-200: #f4ecd9;
  --ink-900: #1c2534;
  --ink-600: #56607a;
  --ink-400: #8891a6;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(10, 24, 48, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 24, 48, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 24, 48, 0.16);
  --container: 1220px;
  --font-en: 'Poppins', 'Segoe UI', sans-serif;
  --font-ar: 'Cairo', 'Tahoma', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--navy-800);
  font-weight: 700;
  line-height: 1.25;
}

p { margin: 0 0 1em; color: var(--ink-600); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; }

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

.bg-sand { background: var(--sand-100); }
.bg-navy {
  background: linear-gradient(155deg, var(--navy-700), var(--navy-900));
  color: var(--white);
}
.bg-navy h2, .bg-navy h3, .bg-navy p { color: var(--white); }
.bg-navy .eyebrow { color: var(--gold-400); }

.pattern-bg {
  background-image: url('../img/pattern-tile.svg');
  background-size: 90px 90px;
  opacity: 0.05;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-600);
  display: inline-block;
}
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-gold {
  background: linear-gradient(120deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(201, 162, 75, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201, 162, 75, 0.45); }
.btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Top bar & Header
   ========================================================================== */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 9px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold-400); }
.topbar .icon { width: 14px; height: 14px; color: var(--gold-400); }

.lang-switch { display: flex; gap: 4px; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 3px; }
.lang-switch a {
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  font-size: 12.5px;
}
.lang-switch a.active { background: var(--gold-500); color: var(--navy-900); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10,24,48,0.06);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 14px;
  flex-wrap: nowrap;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: auto; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 18px; color: var(--navy-800); letter-spacing: .01em; }
.brand-tagline { font-size: 11.5px; color: var(--gold-700); font-weight: 600; letter-spacing: .04em; }

.main-nav ul { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.main-nav a {
  display: inline-block;
  padding: 10px 13px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-900);
  border-radius: 8px;
  transition: color .2s ease;
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-700); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--gold-600);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none;
  background: none; border: none; padding: 6px;
  color: var(--navy-800);
}
.menu-toggle .icon { width: 26px; height: 26px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../img/pattern-tile.svg');
  background-size: 110px 110px;
  opacity: 0.06;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-content .eyebrow { color: var(--gold-400); }
.hero-content h1 {
  color: var(--white);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero-content p.lead {
  color: rgba(255,255,255,0.78);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-visual { position: relative; }
.hero-visual img { animation: float 6s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 30px;
}
.hero-stats .num { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--gold-400); }
.hero-stats .label { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 4px; }

.page-hero {
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: var(--white);
  padding: 150px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../img/pattern-tile.svg');
  background-size: 110px 110px;
  opacity: 0.06;
}
.page-hero .container { position: relative; text-align: center; }
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 46px); }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 17px; max-width: 620px; margin-inline: auto; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 13px; color: var(--gold-400); margin-bottom: 18px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.page-hero-visual { max-width: 640px; margin: 40px auto 0; opacity: 0.95; }

/* ==========================================================================
   Intro / About split
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.split-visual { position: relative; }
.split-visual .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-visual .badge-card {
  position: absolute;
  bottom: -24px;
  inset-inline-start: -24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 240px;
}
.split-visual .badge-card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.split-visual .badge-card .icon-wrap .icon { color: var(--navy-900); width: 22px; height: 22px; }
.split-visual .badge-card strong { display: block; font-size: 18px; color: var(--navy-800); }
.split-visual .badge-card span { font-size: 12.5px; color: var(--ink-600); }

.point-list { margin-top: 26px; display: grid; gap: 14px; }
.point-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--navy-800); }
.point-list .icon { width: 20px; height: 20px; color: var(--gold-600); flex-shrink: 0; margin-top: 2px; }

/* ==========================================================================
   Division / Service cards
   ========================================================================== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card-division {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10,24,48,0.06);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}
.card-division:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-division .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.card-division .icon-wrap .icon { color: var(--gold-400); width: 28px; height: 28px; }
.card-division h3 { font-size: 19px; margin-bottom: 10px; }
.card-division p { font-size: 14.5px; margin-bottom: 18px; }
.card-division .more-link { font-weight: 700; font-size: 13.5px; color: var(--gold-700); display: inline-flex; align-items: center; gap: 6px; }
.card-division .more-link .icon { width: 15px; height: 15px; transition: transform .2s ease; }
.card-division:hover .more-link .icon { transform: translateX(4px); }
html[dir="rtl"] .card-division:hover .more-link .icon { transform: translateX(-4px) rotate(180deg); }

.card-service {
  background: var(--sand-100);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform .3s ease, background .3s ease;
  height: 100%;
}
.card-service:hover { transform: translateY(-6px); background: var(--white); box-shadow: var(--shadow-md); }
.card-service .icon-wrap {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--white);
  border: 1.5px solid var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-service .icon-wrap .icon { color: var(--gold-700); width: 24px; height: 24px; }
.card-service h3 { font-size: 18px; margin-bottom: 8px; }
.card-service p { font-size: 14.5px; margin: 0; }

.card-value {
  text-align: center;
  padding: 30px 20px;
}
.card-value .icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(240,217,140,0.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.card-value .icon-wrap .icon { width: 28px; height: 28px; color: var(--gold-400); }
.card-value h3 { font-size: 17px; }
.card-value p { font-size: 14px; }

.category-pill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-pill {
  display: flex; align-items: center; gap: 12px;
  background: var(--white);
  border: 1px solid rgba(10,24,48,0.08);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-800);
  transition: border-color .2s ease, transform .2s ease;
}
.category-pill:hover { border-color: var(--gold-500); transform: translateY(-3px); }
.category-pill .icon { width: 20px; height: 20px; color: var(--gold-600); flex-shrink: 0; }

/* ==========================================================================
   Why us / features
   ========================================================================== */
.feature-row { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 34px; }
.feature-row .icon-wrap {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  display: flex; align-items: center; justify-content: center;
}
.feature-row .icon-wrap .icon { width: 24px; height: 24px; color: var(--navy-900); }
.feature-row h3 { font-size: 17px; margin-bottom: 6px; }
.feature-row p { font-size: 14.5px; margin: 0; }

/* ==========================================================================
   Process steps
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}
.process-step { text-align: center; position: relative; }
.process-step .step-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: var(--gold-700);
  margin: 0 auto 18px;
  position: relative; z-index: 2;
}
.process-step h3 { font-size: 16.5px; margin-bottom: 8px; }
.process-step p { font-size: 14px; }
.process-grid::before {
  content: "";
  position: absolute;
  top: 30px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-500) 0 8px, transparent 8px 16px);
  z-index: 1;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10,24,48,0.06);
  height: 100%;
}
.testimonial-card .icon-wrap {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(201,162,75,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.testimonial-card .icon-wrap .icon { color: var(--gold-700); width: 20px; height: 20px; }
.testimonial-card p.quote-text { font-size: 15px; color: var(--navy-800); font-style: italic; }
.testimonial-card .stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testimonial-card .stars .icon { width: 15px; height: 15px; color: var(--gold-600); }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-author .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.testimonial-author strong { display: block; font-size: 14.5px; color: var(--navy-800); }
.testimonial-author span { font-size: 12.5px; color: var(--ink-400); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../img/pattern-tile.svg');
  background-size: 90px 90px;
  opacity: 0.07;
}
.cta-band-text { position: relative; max-width: 560px; }
.cta-band h2 { color: var(--white); font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.72); margin: 0; }
.cta-band-action { position: relative; }

/* ==========================================================================
   Timeline (About)
   ========================================================================== */
.timeline { position: relative; max-width: 820px; margin-inline: auto; }
.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 20px;
  top: 0; bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--gold-500) 0 8px, transparent 8px 16px);
}
.timeline-item { position: relative; padding-inline-start: 60px; margin-bottom: 40px; }
.timeline-item .dot {
  position: absolute; inset-inline-start: 10px; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-600); border: 4px solid var(--sand-100);
  box-shadow: 0 0 0 2px var(--gold-500);
}
.timeline-item .year { color: var(--gold-700); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.timeline-item h3 { font-size: 18px; margin: 4px 0 6px; }
.timeline-item p { margin: 0; }

/* ==========================================================================
   Team
   ========================================================================== */
.team-card { text-align: center; }
.team-card .avatar-wrap {
  width: 130px; height: 130px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
  border: 4px solid var(--sand-200);
}
.team-card .avatar-wrap .icon { width: 46px; height: 46px; color: var(--gold-400); }
.team-card h3 { font-size: 16.5px; margin-bottom: 2px; }
.team-card span { font-size: 13px; color: var(--gold-700); font-weight: 600; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../img/pattern-tile.svg');
  background-size: 90px 90px;
  opacity: 0.06;
}
.contact-info-card h3 { color: var(--white); position: relative; }
.contact-item { display: flex; gap: 16px; margin-bottom: 26px; position: relative; }
.contact-item .icon-wrap {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(240,217,140,0.14);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .icon-wrap .icon { width: 21px; height: 21px; color: var(--gold-400); }
.contact-item strong { display: block; font-size: 13px; color: var(--gold-400); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.contact-item span, .contact-item a { color: rgba(255,255,255,0.85); font-size: 14.5px; }
.social-row { display: flex; gap: 10px; margin-top: 30px; position: relative; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.social-row a:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); }
.social-row .icon { width: 17px; height: 17px; }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(10,24,48,0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy-800); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(10,24,48,0.12);
  font-size: 14.5px;
  color: var(--ink-900);
  background: var(--sand-100);
  transition: border-color .2s ease, background .2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold-600);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.alert { padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; font-weight: 600; font-size: 14.5px; display: flex; gap: 10px; align-items: center; }
.alert-success { background: rgba(46, 164, 79, 0.12); color: #1c7a3a; }
.alert-error { background: rgba(214, 69, 69, 0.12); color: #b93030; }
.alert .icon { width: 20px; height: 20px; flex-shrink: 0; }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-top: 30px; }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ==========================================================================
   Compliance banner (medical page)
   ========================================================================== */
.compliance-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  background: var(--sand-100);
  border: 1.5px dashed var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.compliance-banner .icon-wrap {
  width: 68px; height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  display: flex; align-items: center; justify-content: center;
}
.compliance-banner .icon-wrap .icon { width: 32px; height: 32px; color: var(--navy-900); }
.compliance-banner h3 { margin-bottom: 8px; }
.compliance-banner p { margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.65); position: relative; }
.footer-top { padding: 76px 0 50px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.9fr 1.1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .logo-badge {
  background: var(--sand-100);
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
}
.footer-brand img { width: auto; height: 32px; display: block; }
.footer-brand .brand-name { color: var(--white); font-size: 17px; font-weight: 800; }
.footer-col h4 { color: var(--white); font-size: 15.5px; margin-bottom: 22px; position: relative; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a:hover { color: var(--gold-400); }
.footer-col .contact-item strong { color: var(--gold-400); }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--gold-500); color: var(--navy-900); }
.footer-social .icon { width: 16px; height: 16px; }
.newsletter-form { display: flex; margin-top: 14px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.08); padding: 4px; }
.newsletter-form input {
  flex: 1; border: none; background: transparent; padding: 10px 16px;
  color: var(--white); font-size: 13.5px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form button {
  border: none; border-radius: 999px; padding: 10px 18px;
  background: var(--gold-600); color: var(--navy-900); font-weight: 700; font-size: 13px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  font-size: 13px;
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.back-to-top {
  position: fixed;
  inset-inline-end: 26px;
  bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold-600);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s ease;
  z-index: 90;
  border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top .icon { width: 20px; height: 20px; transform: rotate(-90deg); }
html[dir="rtl"] .back-to-top .icon { transform: rotate(90deg); }

@media (max-width: 640px) {
  .back-to-top { width: 42px; height: 42px; bottom: 18px; inset-inline-end: 18px; }
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .category-pill-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; }
  .split-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1200px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 480px) {
  .header-actions .btn span { display: none; }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .category-pill-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 26px; flex-direction: column; text-align: center; }
  .compliance-banner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .topbar .topbar-left { display: none; }
  .topbar-right > span { display: none; }
  .topbar .container { justify-content: center; padding-block: 7px; }
  .page-hero { padding-top: 130px; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .35s ease;
  padding: 26px 28px;
  overflow-y: auto;
}
html[dir="rtl"] .mobile-nav { transform: translateX(-100%); }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-nav-head .brand-name { color: var(--white); }
.mobile-nav ul li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav ul a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; color: var(--white); font-weight: 600; font-size: 16px; }
.mobile-nav ul a.active { color: var(--gold-400); }
.mobile-nav .lang-switch { margin-top: 26px; }
.mobile-nav .btn { margin-top: 20px; }
.mobile-nav-close { background: none; border: none; color: var(--white); }
.mobile-nav-close .icon { width: 26px; height: 26px; }
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 190; opacity: 0; visibility: hidden; transition: opacity .3s ease;
}
.mobile-overlay.show { opacity: 1; visibility: visible; }

/* RTL fine-tuning */
html[dir="rtl"] .eyebrow::before { order: 2; }
html[dir="rtl"] .btn .icon.arrow { transform: rotate(180deg); }
html[dir="rtl"] .process-step .step-num { direction: ltr; }
