/* ==========================================================
   Zarrin Gostaran – Stylesheet
   Logical properties (inline-start/-end) are used throughout,
   so the layout flips automatically between RTL (fa) and LTR (en).
   ========================================================== */

:root {
  --bg: #111215;
  --bg-2: #181a1f;
  --anthracite: #22252b;
  --text: #f4f1ea;
  --text-dim: #b9b5aa;
  --gold: #d4af37;
  --gold-light: #f3d98b;
  --gold-dark: #9c7a1c;
  --gold-gradient: linear-gradient(135deg, #f3d98b 0%, #d4af37 45%, #9c7a1c 100%);
  --line: rgba(212, 175, 55, 0.28);
  --glass: rgba(255, 255, 255, 0.05);
  --radius: 18px;
  --header-h: 84px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.container {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}
.site-header.scrolled {
  height: 70px;
  background: rgba(17, 18, 21, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 56px; width: auto; transition: height 0.4s var(--ease); }
.site-header.scrolled .brand img { height: 46px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 8px 16px;
  font-size: 16px;
  color: var(--text-dim);
  transition: color 0.3s;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 16px;
  bottom: 2px;
  height: 1px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--gold-light); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

/* FA | EN switch */
.lang-toggle {
  direction: ltr;
  position: relative;
  flex: none;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: 78px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 18, 21, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.lang-toggle .lt-opt {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: color 0.3s;
}
.lang-toggle .lt-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  border-radius: 999px;
  background: var(--gold-gradient);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
  transition: transform 0.35s var(--ease);
}
.lang-toggle .lt-opt:first-of-type { color: #17130a; }
.lang-toggle.is-en .lt-knob { transform: translateX(100%); }
.lang-toggle.is-en .lt-opt:first-of-type { color: var(--text-dim); }
.lang-toggle.is-en .lt-opt:last-of-type { color: #17130a; }
.lang-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

html[lang="en"] .clock-city small { display: none; }


.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  inset-inline-start: 12px;
  width: 18px;
  height: 1.5px;
  background: var(--gold-light);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -6px; inset-inline-start: 0; }
.nav-toggle span::after { top: 6px; inset-inline-start: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../images/hero.jpg") center / cover no-repeat;
  animation: kenburns 28s ease-in-out infinite alternate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 18, 21, 0.6) 0%, rgba(17, 18, 21, 0.12) 35%, rgba(17, 18, 21, 0.25) 70%, var(--bg) 100%);
}
@keyframes kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.14) translateY(-1.5%); }
}

.hero { padding-block: calc(var(--header-h) + 40px) 100px; }
.hero-content {
  text-align: center;
  max-width: 880px;
  margin-inline: auto;
  padding: 52px 40px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(17, 18, 21, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.eyebrow {
  display: inline-block;
  padding: 4px 18px;
  margin-bottom: 26px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 18, 21, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero h1 {
  font-size: clamp(30px, 5.2vw, 58px);
  line-height: 1.55;
  font-weight: 800;
  margin-bottom: 24px;
}
.hero-lead {
  max-width: 680px;
  margin: 0 auto 38px;
  color: #dedacf;
  font-size: clamp(16px, 2vw, 19px);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--gold);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
}
.btn-gold { background: var(--gold-gradient); color: #17130a; border-color: transparent; }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35); }
.btn-ghost {
  background: rgba(17, 18, 21, 0.35);
  color: var(--gold-light);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(212, 175, 55, 0.14); transform: translateY(-3px); }

.scroll-hint {
  position: absolute;
  bottom: 28px;
  inset-inline: 0;
  margin-inline: auto;
  width: 34px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}
/* three gold chevrons that light up one after another, pointing down */
.scroll-hint i {
  display: block;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border-right: 2.5px solid var(--gold-light);
  border-bottom: 2.5px solid var(--gold-light);
  transform: rotate(45deg);
  opacity: 0;
  animation: chevron 1.8s ease-in-out infinite;
}
.scroll-hint i:nth-child(1) { animation-delay: 0s; }
.scroll-hint i:nth-child(2) { animation-delay: 0.25s; }
.scroll-hint i:nth-child(3) { animation-delay: 0.5s; }
.scroll-hint:hover i { border-color: #fff; }
@keyframes chevron {
  0% { opacity: 0; translate: 0 -6px; }
  40% { opacity: 1; }
  100% { opacity: 0; translate: 0 8px; }
}

/* ---------- Moving vehicles (plane / ship / truck) ---------- */
/* The track is always LTR: vehicles enter on the left and leave on the right. */
.lane-track {
  position: absolute;
  inset: 0;
  direction: ltr;
  overflow: hidden;
  pointer-events: none;
}
.mover {
  position: absolute;
  left: 0;
  top: var(--y, 50%);
  display: flex;
  align-items: center;
  transform: translate(-100%, -50%);
  animation: travel var(--dur, 10s) linear var(--delay, 0s) infinite;
  will-change: transform;
}
@keyframes travel {
  from { transform: translate(-100%, -50%); }
  to { transform: translate(100vw, -50%); }
}
.trail {
  width: min(36vw, 420px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.15) 40%, var(--gold-light) 100%);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}
.vehicle {
  display: block;
  font-size: var(--size, 44px);
  color: var(--gold-light);
  line-height: 0;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.45));
}
.vehicle svg { display: block; width: 1em; height: 1em; }
.vehicle.plane svg { transform: rotate(90deg); }
.vehicle.ship { animation: bob 3.2s ease-in-out infinite; }
.vehicle.truck { animation: rumble 0.5s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-0.8deg); }
  50% { transform: translateY(3px) rotate(0.8deg); }
}
@keyframes rumble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.2px); }
}

/* hero plane sits above the text, high up */
.hero .mover { --y: 22%; --dur: 11s; --delay: 1.2s; --size: 40px; }
.hero .lane-track { z-index: 0; }

/* ---------- Sections ---------- */
.section { padding-block: 100px; position: relative; }
.section-alt { background: var(--bg-2); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-dim); }

/* Intro panel */
.intro-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px;
}
.intro-panel h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.7; margin-bottom: 18px; font-weight: 800; }
.intro-panel p { color: var(--text-dim); font-size: 18px; }
.quote-box {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.02));
  border: 1px solid var(--line);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.9;
  font-weight: 600;
  color: var(--gold-light);
}
.quote-box::before {
  content: "”";
  position: absolute;
  top: -6px;
  inset-inline-start: 22px;
  font-size: 88px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
}

/* Three image cards */
/* Each card spans two rows of a shared subgrid (image space, text box),
   so all text boxes in one row get the height of the tallest. */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: var(--card-top, 220px) auto; gap: 28px; }
.card {
  position: relative;
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
}
.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.2s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(17, 18, 21, 0.92) 100%);
}
.card:hover img { transform: scale(1.08); }
.card-body {
  grid-row: 2;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(17, 18, 21, 0.45);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.card:hover .card-body { transform: translateY(-6px); border-color: var(--gold); }
.card h3 { font-size: 22px; margin-bottom: 4px; color: var(--gold-light); }
.card p { font-size: 15px; line-height: 1.8; color: #d6d2c6; }

/* Lanes section */
.lanes { display: grid; gap: 22px; }
.lane {
  position: relative;
  height: 112px;
  overflow: hidden;
}
.lane::before { /* the road / sea / air route line */
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
}
.lane-tag {
  position: absolute;
  bottom: 10px;
  inset-inline-start: 18px;
  z-index: 2;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  opacity: 0.85;
}
.lane .mover { --size: 52px; }
.lane-air .mover { --dur: 8s; --delay: 0s; }
.lane-sea .mover { --dur: 15s; --delay: 2s; --size: 60px; }
.lane-land .mover { --dur: 11s; --delay: 1s; --size: 50px; }

/* ---------- Inner pages ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 80px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../images/hero.jpg") center / cover no-repeat;
  filter: blur(3px);
  transform: scale(1.06);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 18, 21, 0.78), var(--bg));
}
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: var(--text-dim); max-width: 620px; margin-inline: auto; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.about-text { padding: 44px; }
.about-text h2 { font-size: 28px; margin-bottom: 16px; font-weight: 800; }
.about-text p { color: var(--text-dim); margin-bottom: 14px; font-size: 16.5px; line-height: 2.1; text-align: justify; }
.about-photo {
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 320px;
}
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.about-photo:hover img { transform: scale(1.05); }
/* Leadership cards: round photo (always on the left) + name/role, animated gold border */
@property --leader-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.leaders { display: grid; gap: 28px; }
.leader {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 44px;
  border-color: transparent;
  overflow: hidden;
}
html[dir="rtl"] .leader { flex-direction: row-reverse; }
.leader::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--leader-angle), var(--line) 0deg, var(--line) 250deg, var(--gold-dark) 290deg, #fff6d5 320deg, var(--gold) 340deg, var(--line) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: leader-spin 6s linear infinite;
  pointer-events: none;
}
.leader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(243, 217, 139, 0.08) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: leader-shine 7s var(--ease) infinite;
  pointer-events: none;
}
.leaders .leader:nth-child(2)::before { animation-delay: -3s; }
.leaders .leader:nth-child(2)::after { animation-delay: 3.5s; }
@keyframes leader-spin { to { --leader-angle: 360deg; } }
@keyframes leader-shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.leader-photo {
  flex: none;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.12), 0 10px 30px rgba(0, 0, 0, 0.4);
}
.leader-text { flex: 1; min-width: 0; }
.leader-text h2 { font-size: 26px; font-weight: 800; line-height: 1.5; }
.leader-text p { color: var(--text-dim); font-size: 17px; font-weight: 400; margin-top: 4px; }
@media (max-width: 640px) {
  .leader { gap: 18px; padding: 22px; }
  .leader-photo { width: 88px; height: 88px; }
  .leader-text h2 { font-size: 21px; }
  .leader-text p { font-size: 15px; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }


.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: stretch; }
.service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}
.service:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.12); }
.service-img { position: relative; height: 260px; overflow: hidden; border-bottom: 1px solid var(--line); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service:hover .service-img img { transform: scale(1.07); }
.service-body { padding: 30px 32px 34px; }
.service h3 { font-size: 22px; line-height: 1.7; margin-bottom: 10px; color: var(--gold-light); }
.service p { font-size: 16px; color: var(--text-dim); line-height: 2.05; text-align: justify; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.info-item { display: flex; gap: 18px; align-items: center; padding: 22px 24px; }
.info-item .ico {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.06);
}
.info-item .ico svg { width: 24px; height: 24px; }
.info-item h3 { font-size: 16px; color: var(--gold-light); font-weight: 600; }
.info-item p { color: var(--text-dim); font-size: 16px; line-height: 1.9; }
.info-item p.num a { display: inline-block; letter-spacing: 0.02em; transition: color 0.3s; }
.info-item p.num a:hover { color: var(--gold-light); }

.form { padding: 40px; display: grid; gap: 18px; }
.form h2 { font-size: 26px; font-weight: 800; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--text-dim); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(17, 18, 21, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-status { min-height: 1.5em; font-size: 15px; color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #0d0e10; padding: 56px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }

.footer-brand { text-align: center; }
.footer-brand img { height: 84px; width: auto; margin: 0 auto 14px; }
.footer-brand p { font-size: 17px; font-weight: 600; color: var(--gold-light); }

.foot-info {
  min-width: 340px;
  padding: 22px 28px;
  display: grid;
  gap: 16px;
  border-radius: var(--radius);
}
.foot-date { display: grid; gap: 2px; }
.foot-date .fa-date { font-size: 21px; font-weight: 600; line-height: 1.7; color: var(--gold-light); }
.foot-date .eu-date { font-size: 15px; color: var(--text-dim); }

.foot-wx {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.foot-wx .wx-icon { flex: none; width: 64px; height: 64px; }
.foot-wx .wx-icon svg { display: block; width: 100%; height: 100%; }
.foot-wx .wx-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.foot-wx .wx-temp { font-size: 34px; font-weight: 300; line-height: 1.2; color: var(--text); }
.foot-wx .wx-cond { font-size: 17px; color: var(--gold-light); }
.foot-wx .wx-sub { margin-top: 2px; font-size: 14px; line-height: 1.8; color: var(--text-dim); }
.foot-wx .wx-city { font-size: 13px; color: var(--gold); letter-spacing: 0.02em; }

/* Footer quote slider */
.foot-mid { position: relative; overflow: hidden; min-height: 210px; width: 100%; }
.quote-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.98);
  visibility: hidden;
  transition: opacity 1.2s var(--ease), filter 1.2s var(--ease), transform 1.2s var(--ease), visibility 0s 1.2s;
}
html[dir="rtl"] .quote-slide { flex-direction: row-reverse; }
@media (max-width: 1099px) {
  .foot-mid { min-height: 250px; }
  .quote-slide { padding: 18px 20px; gap: 14px; }
  .quote-photo { width: 76px; height: 76px; }
  .quote-name { font-size: 17px; }
}
@media (max-width: 380px) { .foot-mid { min-height: 290px; } }
.quote-slide.is-active {
  opacity: 1;
  filter: blur(0);
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}
.quote-photo {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12), 0 8px 22px rgba(0, 0, 0, 0.4);
}
.quote-body { flex: 1; min-width: 0; }
.quote-name { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.5; color: var(--text); }
.quote-role { font-size: 13px; line-height: 1.6; color: var(--gold-light); }
.quote-text { margin: 6px 0 0; font-size: 13px; line-height: 1.8; color: var(--text-dim); }

/* Desktop: three equal boxes – brand, (reserved) middle, date/weather */
@media (min-width: 1100px) {
  .footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 28px; }
  .foot-info { min-width: 0; }
  .footer-brand, .foot-mid {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .footer-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 28px; }
  .foot-mid { display: block; }
}

@media (max-width: 760px) {
  .footer-inner { flex-direction: column; gap: 32px; }
  .foot-info { min-width: 0; width: 100%; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

.fade-up { opacity: 0; transform: translateY(26px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .intro-panel, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-panel { padding: 36px 28px; gap: 28px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: rgba(17, 18, 21, 0.94);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav a::after { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: 70px; }
  .cards, .services, .form-row { grid-template-columns: 1fr; }
  .cards { --card-top: 170px; }
  .hero-content { padding: 32px 20px; }
  .about-text, .form { padding: 28px 22px; }
  .lane { height: 96px; }
  .lane .mover { --size: 44px; }
  .hero .mover { --size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal, .fade-up { opacity: 1; transform: none; }
  .mover { transform: translate(calc(50vw - 50%), -50%); }
}

/* ---------- Page title: dark glass panel ---------- */
.page-hero .container {
  max-width: 760px;
  padding: 40px 32px 44px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(17, 18, 21, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
@media (max-width: 640px) {
  .page-hero .container { padding: 28px 20px 32px; }
}

/* Intro text (long copy) */
.intro-panel { grid-template-columns: 1.5fr 1fr; align-items: stretch; gap: 44px; }
.intro-panel p { font-size: 16.5px; line-height: 2.1; text-align: justify; }
.intro-panel p + p { margin-top: 14px; }
.intro-btn { margin-top: 28px; }

/* Intro photo: fills the height of the text column */
.intro-photo {
  position: relative;
  margin: 0;
  min-height: 280px;
  border-radius: 20px;
  border: 1px solid var(--gold);
  padding: 8px;
  background: rgba(212, 175, 55, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.intro-photo::before { /* thin offset gold frame */
  content: "";
  position: absolute;
  inset: -10px 10px 10px -10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  z-index: -1;
}
.intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
  transition: transform 1.2s var(--ease);
}
.intro-photo { overflow: visible; isolation: isolate; }
.intro-photo .clip { position: absolute; inset: 8px; overflow: hidden; border-radius: 13px; }
.intro-photo .clip img { position: absolute; inset: 0; border-radius: 0; }
.intro-photo:hover .clip img { transform: scale(1.06); }
@media (max-width: 980px) {
  .intro-photo { min-height: 260px; order: -1; }
}
@media (max-width: 980px) {
  .intro-panel { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .intro-photo { height: 260px; }
}
@media (max-width: 640px) {
  .intro-panel { padding: 28px 20px; }
  .intro-panel p { text-align: start; }
}

/* wide icons (truck) keep their aspect ratio */
.vehicle svg.wide { width: 1.9em; height: 1em; }
.lane-sea .mover { --size: 58px; }
.lane-land .mover { --size: 46px; }

/* ---------- World clocks + Tehran weather ---------- */
.clocks { padding: 28px 40px; max-width: 880px; margin-inline: auto; }
.clocks-grid { direction: ltr; display: flex; align-items: center; justify-content: center; gap: 64px; }

.clock-list { direction: rtl; flex: 1; max-width: 440px; }
html[dir="ltr"] .clock-list { direction: ltr; }
.clock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}
.clock-row:first-child { padding-top: 0; }
.clock-row:last-child { border-bottom: 0; padding-bottom: 0; }
.clock-city { font-size: 20px; font-weight: 800; line-height: 1.5; color: var(--gold-light); }
.clock-city small { display: block; font-size: 12px; font-weight: 400; letter-spacing: 0.08em; color: var(--text-dim); }

/* Flip digits – Uiverse look (light cards, soft neumorphic shadow), scaled down */
.clock { --w: 24px; --h: 36px; direction: ltr; display: flex; align-items: center; gap: 3px; }
.clock .sep { width: 7px; text-align: center; font-family: "Oswald", sans-serif; font-weight: 300; font-size: 20px; color: #e0e0e0; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.digit {
  position: relative;
  width: var(--w);
  height: var(--h);
  perspective: 300px;
  border-radius: 4px;
  box-shadow: 2px 2px 5px rgba(42, 42, 42, 0.45), -2px -2px 5px rgba(255, 255, 255, 0.18);
}
.digit::after { /* centre split line */
  content: "";
  position: absolute;
  inset: calc(50% - 0.5px) 0 auto 0;
  height: 1px;
  background: #d2d2d2;
  z-index: 6;
}
.digit .half {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  background: #e0e0e0;
  color: #333;
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: calc(var(--h) * 0.78);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.08);
}
.digit .half span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--h);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.digit .top { top: 0; border-radius: 4px 4px 0 0; }
.digit .bottom,
.digit .leaf .back { border-radius: 0 0 4px 4px; }
.digit .bottom { bottom: 0; }
.digit .bottom span,
.digit .leaf .back span { top: calc(var(--h) / -2); }

.digit .leaf {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  display: none;
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in;
  z-index: 5;
}
.digit .leaf.on { display: block; }
.digit .leaf.go { transform: rotateX(-180deg); }
.digit .leaf .half { top: 0; height: 100%; backface-visibility: hidden; }
.digit .leaf .front { border-radius: 4px 4px 0 0; }
.digit .leaf .back { transform: rotateX(180deg); }

/* Globe (left side of the clocks panel) */
.globe { flex: none; display: block; width: 240px; height: 240px; }

@media (max-width: 760px) {
  .clocks { padding: 24px 18px; }
  .clocks-grid { flex-direction: column; gap: 20px; }
  .clock-list { width: 100%; }
  .globe { width: 210px; height: 210px; }
}
.page-hero h1:last-child { margin-bottom: 0; }

/* Ship keeps its waterline, truck its wheels, exactly on the dashed route line */
.lane .vehicle.ship { position: relative; top: -0.33em; }
.lane .vehicle.truck { position: relative; top: -0.38em; }
@media (max-width: 640px) { .service-img { height: 210px; } .service-body { padding: 24px 22px 28px; } }

/* Contact form: smaller send button + consent switch */
.btn-sm { padding: 8px 30px; font-size: 15px; }
.form .btn-sm { justify-self: start; }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track {
  position: relative;
  flex: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cfcabd;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.switch input:checked + .track { background: var(--gold-gradient); border-color: transparent; }
.switch input:checked + .track::after { background: #17130a; transform: translateX(-20px); }
html[dir="ltr"] .switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35); }
.switch-text { font-size: 14.5px; line-height: 1.8; color: var(--text-dim); }
.switch.invalid .track { border-color: #e5736b; animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (max-width: 820px) { .lang-toggle { margin-inline-start: auto; } }

/* English: Latin text needs tighter headline spacing */
html[lang="en"] .hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.3; }
html[lang="en"] .section-head h2,
html[lang="en"] .intro-panel h2,
html[lang="en"] .page-hero h1 { line-height: 1.3; }
html[lang="en"] .service h3,
html[lang="en"] .about-text h2 { line-height: 1.4; }

/* ---------- Footer legal links ---------- */
.legal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  font-size: 14px;
  color: var(--text-dim);
}
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.legal-links a { color: var(--text-dim); transition: color 0.3s; }
.legal-links a:hover, .legal-links a:focus-visible { color: var(--gold-light); }
.wx-enable { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal pages ---------- */
html[lang="en"] [data-lang="fa"], html[lang="fa"] [data-lang="en"] { display: none; }
.legal { padding: 44px; max-width: 900px; margin-inline: auto; }
.legal h2 { font-size: 21px; font-weight: 800; margin: 34px 0 10px; color: var(--gold-light); }
.legal h2:first-child, .legal-date + h2 { margin-top: 0; }
.legal p, .legal li, .legal address { color: var(--text-dim); font-size: 16px; line-height: 2; font-style: normal; margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-inline-start: 24px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.legal-date { font-size: 14px !important; margin-bottom: 26px !important; }
.legal-table-wrap { overflow-x: auto; margin: 6px 0 16px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal-table th, .legal-table td { padding: 10px 14px; border: 1px solid var(--line); text-align: start; vertical-align: top; color: var(--text-dim); line-height: 1.8; }
.legal-table th { color: var(--gold-light); font-weight: 600; background: rgba(212, 175, 55, 0.06); }
@media (max-width: 640px) { .legal { padding: 28px 22px; } }

/* ---------- Contact form extras ---------- */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: 13.5px; margin: -4px 0 0; }
.form-privacy a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cookie banner and settings ---------- */
.cc-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 300;
  max-width: 880px;
  margin-inline: auto;
  padding: 22px 26px;
  background: rgba(24, 26, 31, 0.94);
  animation: ccIn 0.5s var(--ease);
}
@keyframes ccIn { from { opacity: 0; transform: translateY(20px); } }
.cc-title { font-size: 19px; font-weight: 800; margin: 0 0 6px; color: var(--gold-light); }
.cc-text { font-size: 14.5px; line-height: 1.9; color: var(--text-dim); margin: 0 0 14px; }
.cc-link { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cc-actions .btn { white-space: nowrap; }
.cc-lock { overflow: hidden; }
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 310;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 9, 11, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.cc-dialog { width: min(560px, 100%); max-height: 100%; overflow-y: auto; padding: 28px 30px; background: rgba(24, 26, 31, 0.97); }
.cc-cat { padding: 14px 0; border-top: 1px solid rgba(212, 175, 55, 0.16); }
.cc-cat-title { font-size: 16px; font-weight: 600; color: var(--text); }
.cc-cat-text { font-size: 13.5px; line-height: 1.8; color: var(--text-dim); margin: 6px 0 0; }
.cc-cat .switch input:disabled + .track { opacity: 0.55; }
.cc-dialog .cc-actions { margin-top: 12px; padding-top: 18px; border-top: 1px solid rgba(212, 175, 55, 0.16); }
@media (max-width: 640px) {
  .cc-banner { padding: 18px; }
  .cc-actions .btn { flex: 1 1 auto; }
}

/* ---------- Designer credit (very bottom of the footer) ---------- */
.credit { margin: 22px auto 0; text-align: center; font-size: 13px; color: var(--text-dim); opacity: 0.85; }
.credit a { color: var(--gold-light); transition: color 0.3s, text-shadow 0.3s; }
.credit a:hover, .credit a:focus-visible { color: #fff6d5; text-shadow: 0 0 12px rgba(243, 217, 139, 0.5); }
