/*
Theme Name: Al-Huwayj
Theme URI: https://elhweij.com/
Author: Al-Huwayj
Description: شركة الحويج للاستيراد والتصدير والشحن البحري من الصين إلى ليبيا. يحافظ على التصميم الأصلي مع دعم إدارة WordPress للصور والمنشورات.
Version: 1.0.1
Text Domain: alhuwayj
*/

/* ========================================
   AL-HUWAYJ — Marine Logistics Theme
   Sky + Sea + Gold
   ======================================== */

:root {
  --sky: #38BDF8;
  --light-sky: #E0F2FE;
  --ocean: #0284C7;
  --deep-ocean: #075985;
  --navy: #0C4A6E;
  --white: #FFFFFF;
  --gold: #D4AF37;
  --gold-soft: #E7C76A;

  --text: #0f2a3d;
  --text-soft: #4b6479;
  --border: #e2eef7;

  --shadow-sm: 0 4px 14px rgba(12, 74, 110, 0.06);
  --shadow-md: 0 10px 30px rgba(12, 74, 110, 0.10);
  --shadow-lg: 0 24px 60px rgba(12, 74, 110, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container: 1280px;
}

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

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

body {
  font-family: 'Cairo', 'Tajawal', 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body[data-lang="en"] { font-family: 'Inter', 'Cairo', sans-serif; }
body[data-lang="zh"] { font-family: 'Inter', 'Cairo', sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ========== Reusable elements ========== */
.eyebrow {
  display: inline-block;
  color: var(--ocean);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--light-sky);
  border: 1px solid rgba(2, 132, 199, 0.15);
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  color: var(--deep-ocean);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 720px;
  line-height: 1.85;
}
.section-lead.center { margin-left: auto; margin-right: auto; text-align: center; }

.section {
  padding: 96px 0;
  position: relative;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .section-lead { margin: 8px auto 0; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, #E7C76A 0%, #D4AF37 100%);
  color: #1c1300;
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.35);
  border-color: rgba(255,255,255,0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.45);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--gold);
}
.btn-ghost-light:hover { background: var(--gold); color: var(--navy); }

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: all .35s ease;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 6px 24px rgba(12, 74, 110, 0.08);
  padding: 8px 0;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { flex-shrink: 0; display: flex; align-items: center; }
/* .brand-logo rules are defined in the LOGO section at the end of this file */

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
}
.site-header.scrolled .primary-nav ul {
  background: transparent;
  border: 1px solid var(--border);
}

.primary-nav a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--white);
  border-radius: 999px;
  transition: all .25s ease;
}
.site-header.scrolled .primary-nav a { color: var(--deep-ocean); }
.primary-nav a:hover { background: rgba(255,255,255,0.18); color: var(--white); }
.site-header.scrolled .primary-nav a:hover { background: var(--light-sky); color: var(--ocean); }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Flags strip */
.flags-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
}
.site-header.scrolled .flags-strip {
  background: var(--light-sky);
  border-color: rgba(2,132,199,0.15);
}
.flag { font-size: 20px; line-height: 1; }
.route-arrow { font-size: 16px; }

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
}
.site-header.scrolled .lang-switch {
  background: rgba(255,255,255,0.9);
  border-color: var(--border);
}
.lang-btn {
  background: none; border: 0;
  font-weight: 700;
  font-size: 13px;
  color: var(--white);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 999px;
  transition: all .2s ease;
}
.site-header.scrolled .lang-btn { color: var(--text-soft); }
.lang-btn:hover { color: var(--gold); }
.lang-btn.active {
  background: var(--gold);
  color: #1c1300 !important;
}
.lang-sep { color: rgba(255,255,255,0.5); font-size: 12px; }
.site-header.scrolled .lang-sep { color: var(--border); }

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: linear-gradient(135deg, #E7C76A, #D4AF37);
  color: #1c1300 !important;
  font-weight: 800;
  font-size: 14px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(212,175,55,0.35);
  transition: transform .25s ease;
}
.header-cta:hover { transform: translateY(-2px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.site-header.scrolled .hamburger {
  background: var(--light-sky);
  border-color: rgba(2,132,199,0.2);
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: all .3s ease;
  border-radius: 2px;
}
.site-header.scrolled .hamburger span { background: var(--deep-ocean); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 16px; right: 16px;
  margin-top: 8px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 16px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--deep-ocean);
  border-radius: 10px;
  transition: background .2s ease;
}
.mobile-menu a:hover { background: var(--light-sky); }
.mobile-cta { display: block; margin-top: 12px; text-align: center; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
  isolation: isolate;
}

@media (min-width: 1600px) {
  .hero { min-height: 96vh; padding: 160px 0 120px; }
}

.hero-slider { position: absolute; inset: 0; z-index: -2; }
/* Hero slide transitions are defined in the animation system block below */

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(12, 74, 110, 0.78) 0%, rgba(2, 132, 199, 0.55) 50%, rgba(7, 89, 133, 0.7) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(56, 189, 248, 0.3), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  text-align: center;
  color: var(--white);
}

.hero-flag-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  padding: 10px 22px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  animation: floatY 4s ease-in-out infinite;
}
.hero-flag { font-size: 26px; }
.hero-route {
  display: flex; align-items: center; gap: 6px;
}
.route-line {
  width: 30px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.route-ship { font-size: 22px; }

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

.hero-title {
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.hero-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  max-width: 760px;
  margin: 0 auto 40px;
  line-height: 1.85;
  color: rgba(255,255,255,0.92);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Slider controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(8px);
  transition: all .25s ease;
}
.slider-arrow:hover { background: rgba(255,255,255,0.25); transform: translateY(-50%) scale(1.05); }
.slider-prev { left: 24px; }
.slider-next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.slider-dots .dot {
  width: 28px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  cursor: pointer;
  transition: all .25s ease;
}
.slider-dots .dot.active {
  background: var(--gold);
  width: 44px;
}

/* ========== TRUST STRIP ========== */
.trust-strip {
  background: var(--white);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 5;
}
.trust-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 200px;
}
.trust-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--light-sky), #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  border: 1px solid rgba(2,132,199,0.15);
}
.trust-text { display: flex; flex-direction: column; line-height: 1.3; }
.trust-title { font-weight: 800; color: var(--deep-ocean); font-size: 16px; }
.trust-desc { font-size: 13.5px; color: var(--text-soft); }
.trust-sep {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

/* ========== ABOUT ========== */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-md);
  background: var(--light-sky);
}
.about-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .6s ease;
}
.about-image:hover img { transform: scale(1.04); }
.about-image-accent {
  position: absolute;
  top: -12px; right: -12px;
  width: 100%; height: 100%;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.about-text .section-title { margin-top: 6px; }
.about-points {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--text);
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(212,175,55,0.18);
}

/* ========== SERVICES ========== */
.services { background: var(--light-sky); position: relative; }
.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: all .3s ease;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212,175,55,0.35);
}
.service-card:hover::before { opacity: 1; }
.service-num {
  position: absolute;
  top: 18px;
  left: 22px;
  font-size: 44px;
  font-weight: 900;
  color: var(--light-sky);
  line-height: 1;
  pointer-events: none;
}
.service-ico {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--ocean), var(--deep-ocean));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(2,132,199,0.25);
}
.service-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--deep-ocean);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.8;
}
.service-card-wide {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--deep-ocean), var(--navy));
  color: var(--white);
  border-color: rgba(212,175,55,0.3);
}
.service-card-wide .service-num { color: rgba(255,255,255,0.07); }
.service-card-wide h3 { color: var(--white); }
.service-card-wide p { color: rgba(255,255,255,0.85); }

/* ========== SHIPPING JOURNEY (7 STAGES — Photorealistic) ========== */
.journey {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.journey::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

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

.stage-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position: relative;
}
.stage-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .35s ease;
}
.stage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.35);
}
.stage-card:hover::after { opacity: 1; }

.stage-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--light-sky);
}
.stage-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .8s ease;
  display: block;
}
.stage-card:hover .stage-img img { transform: scale(1.06); }

.stage-num {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E7C76A 0%, #D4AF37 100%);
  color: #1c1300;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.45), 0 0 0 4px rgba(255,255,255,0.85);
  z-index: 2;
}
body[dir="ltr"] .stage-num { left: auto; right: 16px; }

.stage-body {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  background: var(--light-sky);
  color: var(--ocean);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border: 1px solid rgba(2,132,199,0.15);
}

.stage-body h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--deep-ocean);
  line-height: 1.35;
  margin: 2px 0 4px;
}

.stage-body p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.85;
  margin: 0;
}

/* Stage 7 — Featured final destination card */
.stage-card-final {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: linear-gradient(135deg, var(--deep-ocean) 0%, var(--navy) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 24px 60px rgba(7, 89, 133, 0.28);
  overflow: hidden;
  position: relative;
}
.stage-card-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(212,175,55,0.18), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.stage-card-final::after { display: none; }

.stage-card-final .stage-img {
  aspect-ratio: auto;
  min-height: 360px;
  border-radius: 0;
}
.stage-card-final .stage-body {
  padding: 44px 40px;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.stage-card-final .stage-body h3 {
  color: var(--white);
  font-size: 26px;
  line-height: 1.3;
}
.stage-card-final .stage-body p {
  color: rgba(255,255,255,0.85);
  font-size: 15.5px;
  max-width: 460px;
}
.stage-tag-final {
  background: linear-gradient(135deg, #E7C76A, #D4AF37);
  color: #1c1300 !important;
  border: 0;
  padding: 7px 16px;
  font-size: 12.5px;
  box-shadow: 0 6px 18px rgba(212,175,55,0.35);
}
.stage-num-final {
  width: 64px; height: 64px;
  font-size: 20px;
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.55), 0 0 0 5px rgba(255,255,255,0.9);
}

/* ========== WHY US ========== */
.why { background: var(--light-sky); position: relative; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.why-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--deep-ocean);
  transition: all .3s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(212,175,55,0.4);
}
.check {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean), var(--deep-ocean));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}

/* ========== ROUTE MAP (China → Sea → Libya) ========== */
.route-map {
  background: linear-gradient(180deg, #f0f9ff 0%, var(--light-sky) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.route-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(56,189,248,0.06) 31%, transparent 32%),
    radial-gradient(circle at 50% 50%, transparent 50%, rgba(56,189,248,0.04) 51%, transparent 52%);
  background-size: 80px 80px;
  opacity: 0.7;
  pointer-events: none;
}
.route-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 2;
}
.route-end {
  text-align: center;
  padding: 30px;
}
.route-flag-big {
  font-size: 80px;
  margin-bottom: 16px;
  filter: drop-shadow(0 10px 20px rgba(7,89,133,0.2));
}
.route-end h3 {
  font-size: 28px;
  font-weight: 900;
  color: var(--deep-ocean);
  margin-bottom: 4px;
}
.route-end p { font-size: 14px; color: var(--text-soft); }

.route-mid {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.route-arrow-big {
  font-size: 36px;
  color: var(--ocean);
  animation: floatY 2.4s ease-in-out infinite;
}
.route-ship-big {
  font-size: 70px;
  animation: shipBob 3.2s ease-in-out infinite;
}
@keyframes shipBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}
.route-wave {
  display: flex;
  gap: 4px;
  font-size: 14px;
}
.route-wave span {
  display: inline-block;
  width: 6px; height: 18px;
  background: var(--sky);
  border-radius: 50%;
  opacity: 0.5;
  animation: wave 1.6s ease-in-out infinite;
}
.route-wave span:nth-child(2) { animation-delay: .15s; }
.route-wave span:nth-child(3) { animation-delay: .30s; }
.route-wave span:nth-child(4) { animation-delay: .45s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.route-ocean {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ocean);
  text-transform: uppercase;
}

/* ========== CHINA OFFICE ========== */
.china-office { background: var(--white); }
.china-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.china-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-md);
  background: var(--light-sky);
}
.china-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .6s ease;
}
.china-image:hover img { transform: scale(1.04); }

.china-company {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--ocean);
  letter-spacing: 0.5px;
  margin: 16px 0 28px;
  padding: 14px 18px;
  background: var(--light-sky);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  /* LTR isolated — never reverse English company name */
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
body[dir="ltr"] .china-company { border-left: 0; border-right: 3px solid var(--gold); }

/* ---------- Contact Cards ---------- */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all .3s var(--ease-out);
  text-decoration: none;
  color: inherit;
}
a.contact-card:hover,
.contact-card-link:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-sky);
  color: var(--ocean);
  transition: all .3s var(--ease-out);
}
.contact-icon svg { width: 22px; height: 22px; display: block; }
.contact-icon-blue { background: var(--light-sky); color: var(--ocean); }
.contact-icon-whatsapp { background: rgba(37, 211, 102, 0.12); color: #25D366; }
.contact-icon-wechat { background: rgba(26, 173, 25, 0.12); color: #1AAD19; }

.contact-card:hover .contact-icon { transform: scale(1.05); }

.contact-body {
  flex: 1;
  min-width: 0; /* allow content to shrink */
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
body[dir="rtl"] .contact-body { align-items: flex-end; }

.contact-label {
  font-family: 'Inter', 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1.5px;
  line-height: 1.4;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.contact-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
  font-weight: 600;
  font-family: 'Inter', 'Cairo', sans-serif;
  /* CRITICAL: phone numbers and addresses must be strictly LTR */
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: anywhere; /* prevent overflow on small screens */
  max-width: 100%;
}
body[dir="rtl"] .contact-value { text-align: right; }
a.contact-value, .contact-card-link .contact-value { color: var(--deep-ocean); }
a.contact-value:hover, .contact-card-link:hover .contact-value { color: var(--ocean); }

/* ---------- Contact Grid (4 services) ---------- */
.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-card-address {
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, var(--light-sky) 100%);
}
.contact-card-address .contact-value {
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 500;
}

/* ---------- China Tag (bottom) ---------- */
.china-tag {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  color: var(--deep-ocean);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  border-radius: 999px;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ========== LOCATION / MAP ========== */
.location {
  background: var(--white);
  position: relative;
}
.location::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}

/* In RTL: info on right (first child), map on left (second child) — natural flow */
body[dir="rtl"] .location-grid { direction: rtl; }

.location-info {
  background: linear-gradient(135deg, #fff 0%, var(--light-sky) 100%);
  border: 1px solid rgba(2, 132, 199, 0.15);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.location-info::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ocean), var(--gold), var(--ocean));
}

.location-info-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.location-icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ocean), var(--deep-ocean));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(2,132,199,0.3);
}
.location-icon svg { width: 26px; height: 26px; }
.location-name {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--deep-ocean);
  line-height: 1.35;
  margin-bottom: 4px;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
.location-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.location-addr {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.85;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
body[dir="rtl"] .location-addr { border-left: 0; border-right: 3px solid var(--gold); }

.location-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.location-btn {
  padding: 11px 18px;
  font-size: 14px;
  gap: 8px;
  flex: 1 1 auto;
  justify-content: center;
}
.location-btn svg { flex-shrink: 0; }

.location-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(2, 132, 199, 0.12);
}
.lm-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.lm-ico {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--white);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.lm-label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.lm-val {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
body[dir="rtl"] .lm-val { text-align: right; }

/* Map container */
.location-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  min-height: 480px;
  background: var(--light-sky);
}
.office-map {
  width: 100%;
  height: 100%;
  min-height: 480px;
}
.office-map.leaflet-container {
  background: var(--light-sky);
}
.map-placeholder {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Custom map pin */
.alhuwayj-marker {
  background: transparent;
  border: 0;
}
.alhuwayj-pin {
  width: 44px;
  height: 56px;
  position: relative;
  filter: drop-shadow(0 8px 16px rgba(7, 89, 133, 0.4));
  transform-origin: 50% 100%;
  animation: pinDrop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes pinDrop {
  0% { transform: translateY(-30px) scale(0.5); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.alhuwayj-pin svg { width: 100%; height: 100%; display: block; }

/* Map popup styling */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  padding: 0;
  box-shadow: 0 16px 40px rgba(7, 89, 133, 0.25);
  border: 0;
  overflow: hidden;
}
.leaflet-popup-content {
  margin: 0;
  width: 280px !important;
  font-family: 'Inter', 'Cairo', sans-serif;
}
.leaflet-popup-tip {
  box-shadow: 0 4px 12px rgba(7, 89, 133, 0.15);
}
.map-popup {
  padding: 0;
}
.map-popup-head {
  background: linear-gradient(135deg, var(--ocean), var(--deep-ocean));
  color: var(--white);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-popup-head svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--gold);
}
.map-popup-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin: 0;
  line-height: 1.3;
}
.map-popup-body {
  padding: 14px 18px;
  background: var(--white);
}
.map-popup-addr {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
.map-popup-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #E7C76A, #D4AF37);
  color: #1c1300;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.3px;
}
.map-popup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.45);
}
.map-popup-btn svg { width: 14px; height: 14px; }

/* Map attribution override */
.leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.85) !important;
  padding: 2px 6px !important;
}

/* Leaflet zoom button styling to match brand */
.leaflet-control-zoom a {
  background: var(--white) !important;
  color: var(--deep-ocean) !important;
  border: 1px solid var(--border) !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 30px !important;
  transition: all 0.2s ease;
}
.leaflet-control-zoom a:hover {
  background: var(--light-sky) !important;
  color: var(--ocean) !important;
  border-color: var(--ocean) !important;
}
.leaflet-bar { box-shadow: 0 4px 12px rgba(7, 89, 133, 0.15) !important; border-radius: 8px !important; overflow: hidden; }

/* ========== CTA ========== */
.cta-section {
  padding: 60px 0 100px;
  background: linear-gradient(180deg, var(--white), var(--light-sky));
}
.cta-card {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(56,189,248,0.25), transparent 60%),
    linear-gradient(135deg, var(--deep-ocean) 0%, var(--navy) 100%);
  color: var(--white);
  border-radius: 26px;
  padding: 70px 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(7,89,133,0.35);
}
.cta-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-decor-1 {
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(212,175,55,0.18), transparent 70%);
}
.cta-decor-2 {
  bottom: -80px; left: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(56,189,248,0.18), transparent 70%);
}
.cta-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900;
  margin-bottom: 14px;
  position: relative;
}
.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 34px;
  position: relative;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
}

/* ========== FOOTER ========== */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, #082f49 100%);
  color: rgba(255,255,255,0.78);
  padding: 80px 0 24px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}
/* .footer-logo rules are defined in the LOGO section at the end of this file */
.footer-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-desc { font-size: 14.5px; line-height: 1.8; max-width: 320px; }
.footer-flags {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.25);
  font-size: 18px;
}
.footer-col h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px; height: 2px;
  background: var(--gold);
}
body[dir="ltr"] .footer-col h4::after { left: 0; right: auto; }
body[dir="rtl"] .footer-col h4::after { right: 0; left: auto; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14.5px;
  color: rgba(255,255,255,0.7);
  transition: color .2s ease;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
}
.footer-tag {
  font-family: 'Inter', sans-serif;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }
  .header-cta { display: none; }
  .journey-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .section { padding: 70px 0; }
  .about-grid, .china-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .flags-strip { display: none; }
  .stage-card-final { grid-template-columns: 1fr; }
  .stage-card-final .stage-img { min-height: 280px; }
  .stage-card-final .stage-body { padding: 32px 26px; }
  .location-grid { grid-template-columns: 1fr; gap: 24px; }
  .location-info-head { flex-direction: row; }
  .location-info { padding: 28px 24px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner { gap: 12px; }
  .lang-switch { padding: 4px 8px; }
  .lang-btn { font-size: 12px; padding: 3px 6px; }
  .hero { min-height: 88vh; padding: 110px 0 60px; }
  .hero-flag-row { padding: 8px 16px; gap: 10px; margin-bottom: 24px; }
  .hero-flag { font-size: 22px; }
  .route-line { width: 22px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 14.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; padding: 0 20px; }
  .btn { padding: 14px 22px; font-size: 14.5px; }
  .slider-arrow { display: none; }
  .trust-grid { flex-direction: column; align-items: stretch; gap: 14px; }
  .trust-sep { width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
  .trust-item { justify-content: center; text-align: start; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card-wide { grid-column: span 1; }
  .journey-grid { grid-template-columns: 1fr; gap: 18px; }
  .stage-card-final .stage-body h3 { font-size: 22px; }
  .stage-card-final .stage-body p { font-size: 14.5px; }
  .why-grid { grid-template-columns: 1fr; }
  .route-flow { grid-template-columns: 1fr; gap: 14px; }
  .route-mid { transform: rotate(90deg); padding: 20px 0; }
  .route-arrow-big, .route-ship-big { font-size: 50px; }
  .china-info-grid,
  .contact-cards-grid { grid-template-columns: 1fr; gap: 12px; }
  .cta-card { padding: 50px 22px; border-radius: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .location-info { padding: 24px 20px; gap: 16px; }
  .location-icon { width: 48px; height: 48px; border-radius: 14px; }
  .location-name { font-size: 15.5px; }
  .location-addr { font-size: 13.5px; padding: 14px 16px; }
  .location-btn { font-size: 13px; padding: 10px 14px; flex: 1 1 100%; }
  .office-map, .location-map { min-height: 360px; }
}

@media (min-width: 1600px) {
  .hero-title { font-size: 72px; }
  .container { padding: 0 32px; }
}

/* ========== RTL/LTR language adjustments ========== */
body[dir="ltr"] .hero-flag-row { direction: ltr; }
body[dir="ltr"] .hero-actions { direction: ltr; }
body[dir="ltr"] .timeline-items { direction: ltr; }
body[dir="ltr"] .trust-grid { direction: ltr; }
body[dir="ltr"] .footer-col h4::after { left: auto; right: 0; }

/* ========================================
   AZZAD-STYLE ANIMATION SYSTEM
   GPU-friendly • Smooth • Reduced-motion safe
   ======================================== */

/* Custom easing curves */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Hero crossfade + subtle zoom ---------- */
.hero-slider .slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 900ms var(--ease-in-out),
    transform 9s var(--ease-out) /* Ken Burns, slow zoom out */
  ;
  will-change: opacity, transform;
}
.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-slider .slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- Scroll Reveal: Fade Up ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out)
  ;
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ---------- Stagger reveal: child elements fade in sequentially ---------- */
.stagger > * {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out)
  ;
  will-change: opacity, transform;
}
.stagger.in-view > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.stagger.in-view > *:nth-child(1)  { transition-delay: 0ms; }
.stagger.in-view > *:nth-child(2)  { transition-delay: 70ms; }
.stagger.in-view > *:nth-child(3)  { transition-delay: 140ms; }
.stagger.in-view > *:nth-child(4)  { transition-delay: 210ms; }
.stagger.in-view > *:nth-child(5)  { transition-delay: 280ms; }
.stagger.in-view > *:nth-child(6)  { transition-delay: 350ms; }
.stagger.in-view > *:nth-child(7)  { transition-delay: 420ms; }
.stagger.in-view > *:nth-child(8)  { transition-delay: 490ms; }
.stagger.in-view > *:nth-child(9)  { transition-delay: 560ms; }
.stagger.in-view > *:nth-child(10) { transition-delay: 630ms; }
.stagger.in-view > *:nth-child(11) { transition-delay: 700ms; }
.stagger.in-view > *:nth-child(12) { transition-delay: 770ms; }

/* ---------- Subtle Parallax (desktop only) ---------- */
.parallax {
  transform: translate3d(0, var(--py, 0px), 0);
  transition: transform 120ms linear;
  will-change: transform;
}

/* ---------- Refined hover transitions for cards ---------- */
.service-card,
.why-card,
.stage-card,
.trust-item,
.china-image,
.about-image {
  transition:
    transform 320ms var(--ease-out),
    box-shadow 320ms var(--ease-out),
    border-color 320ms var(--ease-out)
  ;
}

.service-card:hover,
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.35);
}

.trust-item {
  transition: transform 280ms var(--ease-out);
}
.trust-item:hover {
  transform: translateY(-2px);
}

.china-image img,
.about-image img {
  transition: transform 800ms var(--ease-out);
}
.china-image:hover img,
.about-image:hover img {
  transform: scale(1.04);
}

/* Stage image zoom stays subtle, within frame */
.stage-img img {
  transition: transform 700ms var(--ease-out);
}
.stage-card:hover .stage-img img {
  transform: scale(1.05);
}

/* ---------- Buttons: smooth 220ms hover ---------- */
.btn {
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    background 220ms var(--ease-out),
    color 220ms var(--ease-out),
    border-color 220ms var(--ease-out)
  ;
}
.btn .btn-ico {
  display: inline-block;
  transition: transform 220ms var(--ease-out);
}
.btn:hover .btn-ico {
  transform: translateX(3px);
}
body[dir="rtl"] .btn:hover .btn-ico {
  transform: translateX(-3px);
}

/* ---------- Navbar: ultra smooth sticky transition ---------- */
.site-header {
  transition:
    background 350ms var(--ease-in-out),
    box-shadow 350ms var(--ease-in-out),
    padding 280ms var(--ease-out),
    backdrop-filter 350ms var(--ease-in-out)
  ;
}
.brand-logo {
  transition:
    height 350ms var(--ease-out),
    max-width 350ms var(--ease-out)
  ;
}
.primary-nav ul {
  transition:
    background 350ms var(--ease-in-out),
    border-color 350ms var(--ease-in-out)
  ;
}
.primary-nav a,
.lang-btn,
.lang-switch,
.flags-strip,
.hamburger {
  transition:
    background 220ms var(--ease-out),
    color 220ms var(--ease-out),
    border-color 220ms var(--ease-out)
  ;
}

/* ---------- Section head: refined reveal ---------- */
.section-head {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out)
  ;
}
.section-head.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ---------- Reduced motion accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .stagger > *,
  .section-head {
    opacity: 1 !important;
    transform: none !important;
  }
  .parallax {
    transform: none !important;
  }
  .hero-slider .slide {
    transform: none !important;
  }
}

/* ---------- Mobile: disable parallax, lighten animations ---------- */
@media (max-width: 768px) {
  .parallax { transform: none !important; }
  .stagger > * { transform: translate3d(0, 12px, 0); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--light-sky); }
::-webkit-scrollbar-thumb { background: var(--ocean); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--deep-ocean); }

/* ========================================
   PHONE NUMBERS — LTR ISOLATION
   Keep numbers readable LTR even inside RTL page
   ======================================== */
.phone-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
  display: inline-block;
}
body[dir="rtl"] .phone-ltr { text-align: right; }

/* Make phone links feel clickable */
a.phone-ltr {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
  font-weight: inherit;
}

/* ========================================
   LOGO — preserve original PNG
   No effects, shadows, borders, gradients
   Just clean responsive sizing
   ======================================== */
.brand-logo {
  /* Use object-fit to preserve natural aspect ratio */
  object-fit: contain;
  /* No filters, no borders, no backgrounds */
  filter: none;
  border: 0;
  outline: 0;
  background: transparent;
  /* Allow natural sizing based on image intrinsic ratio */
  height: 72px;
  width: auto;
  max-width: 360px;
  transition: height .35s ease, max-width .35s ease;
}
.site-header.scrolled .brand-logo {
  height: 64px;
  max-width: 320px;
}

@media (min-width: 1600px) {
  .brand-logo { height: 88px; max-width: 380px; }
  .site-header.scrolled .brand-logo { height: 72px; max-width: 340px; }
}

@media (max-width: 640px) {
  .brand-logo { height: 70px; max-width: 220px; }
  .site-header.scrolled .brand-logo { height: 60px; max-width: 200px; }
}

/* Footer logo — same treatment, no decorations */
.footer-logo {
  height: auto;
  max-height: 120px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  filter: none;
  border: 0;
  background: transparent;
  margin-bottom: 18px;
}
@media (max-width: 640px) {
  .footer-logo { max-height: 96px; max-width: 220px; }
}
