@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Kufi+Arabic:wght@400;500;600;700&family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root{
  --navy:#0c2f63;
  --navy2:#164a86;
  --gold:#c59731;
  --bg:#f6f8fb;
  --white:#ffffff;
  --text:#182338;
  --muted:#667085;
  --line:#e5eaf1;
  --green:#25d366;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background:var(--white);
  font-family:'Inter',Arial,sans-serif;
  line-height:1.65;
}
html[lang="ar"] body,
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,
html[lang="ar"] p,html[lang="ar"] a,html[lang="ar"] span,
html[lang="ar"] li,html[lang="ar"] button{
  font-family:'Noto Kufi Arabic',Tahoma,Arial,sans-serif;
}
html[lang="fa"] body,
html[lang="fa"] h1,html[lang="fa"] h2,html[lang="fa"] h3,
html[lang="fa"] p,html[lang="fa"] a,html[lang="fa"] span,
html[lang="fa"] li,html[lang="fa"] button{
  font-family:'Vazirmatn',Tahoma,Arial,sans-serif;
}

a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.container{width:min(1160px,92%);margin:auto}

/* HEADER */
.header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(10px);
}
.nav{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.brand-logo{
  width:42px;
  height:42px;
  flex:0 0 42px;
  object-fit:contain;
}
.brand{
  color:var(--navy);
  font-weight:800;
  font-size:.95rem;
  line-height:1.15;
  white-space:nowrap;
}
.brand span{
  display:block;
  margin-top:5px;
  color:var(--gold);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.3px;
  white-space:nowrap;
}
.navlinks{display:flex;align-items:center;gap:22px}
.navlinks>a{font-weight:700;color:#34415a}
.navlinks>a:hover{color:var(--navy)}
.lang{display:flex;gap:8px;direction:ltr}
.lang a{
  width:38px;height:38px;border:1px solid var(--line);
  border-radius:50%;display:grid;place-items:center;
  font-size:.78rem;font-weight:800;
}
.menu-btn{
  display:none;
  background:none;
  border:0;
  color:var(--navy);
  font-size:1.5rem;
  cursor:pointer;
}

/* HERO */
.hero{
  color:#fff;
  background-color:var(--navy) !important;
  background-image:
    radial-gradient(circle at 85% 15%,rgba(255,255,255,.13),transparent 30%),
    linear-gradient(135deg,#0b2e61 0%,#164a86 100%) !important;
  padding:86px 0 74px;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.12fr .88fr;
  gap:52px;
  align-items:center;
}
.eyebrow{
  color:#e9bf60;
  font-size:.82rem;
  font-weight:800;
  letter-spacing:2px;
  text-transform:uppercase;
}
h1{
  margin:14px 0 18px;
  font-size:clamp(2.25rem,5vw,4.4rem);
  line-height:1.06;
}
.hero h1{color:#fff}
.hero p{
  max-width:720px;
  margin:0;
  color:#e8eff9;
  font-size:1.08rem;
}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.btn{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 20px;
  border-radius:12px;
  font-weight:800;
}
.btn-primary{background:var(--gold);color:#fff}
.btn-secondary{border:1px solid rgba(255,255,255,.42);color:#fff}

.hero-card{
  color:#fff !important;
  border:1px solid rgba(255,255,255,.20) !important;
  border-radius:24px;
  padding:26px;
  background:rgba(255,255,255,.08) !important;
  box-shadow:0 20px 56px rgba(0,0,0,.16);
}
.hero-card h3{margin:0 0 13px;color:#fff}
.hero-card ul{margin:0;padding-left:20px}
html[dir="rtl"] .hero-card ul{padding-left:0;padding-right:20px}

.work-icons{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:nowrap;
  margin:0 0 18px;
}
.work-icon{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  border-radius:11px !important;
  border:1px solid rgba(255,255,255,.25) !important;
  background:rgba(255,255,255,.08) !important;
  display:grid !important;
  place-items:center !important;
}
.work-icon svg{
  width:19px !important;
  height:19px !important;
  fill:#fff !important;
  color:#fff !important;
}

/* COMMON SECTIONS */
.section{padding:74px 0}
.section.alt{background:var(--bg)}
.section-head{max-width:760px;margin-bottom:30px}
.section-head h2{
  margin:.2rem 0 .55rem;
  color:var(--navy);
  font-size:clamp(1.8rem,3vw,2.55rem);
  line-height:1.2;
}
.section-head p{margin:0;color:var(--muted)}

/* STATS */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.stat{
  padding:24px 18px;
  text-align:center;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 26px rgba(12,47,99,.04);
}
.stat strong{display:block;color:var(--navy);font-size:2.1rem}
.stat span{color:var(--muted);font-weight:700;font-size:.92rem}

/* SERVICES */
.service-strip{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding:3px 2px 12px;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.service-strip::-webkit-scrollbar{height:7px}
.service-strip::-webkit-scrollbar-thumb{background:#c7d0de;border-radius:99px}
.service-mini{
  flex:0 0 205px;
  min-width:205px;
  scroll-snap-align:start;
  padding:17px 15px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 24px rgba(12,47,99,.05);
}
.cargo-icon{
  width:42px;height:42px;border-radius:12px;
  display:grid;place-items:center;
  background:#eef4fb;color:var(--navy);
}
.cargo-icon svg{width:23px;height:23px;fill:currentColor}
.service-mini h3{
  margin:10px 0 0;
  color:var(--navy);
  font-size:.97rem;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* OFFICE */
.office-strip{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding:3px 2px 12px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.office-card{
  flex:1 0 31%;
  min-width:300px;
  aspect-ratio:4/3;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
}
.office-card img{width:100%;height:100%;object-fit:cover}

/* ABOUT */
.trust-card{
  border:1px solid var(--line);
  border-radius:20px;
  padding:26px;
  background:#fff;
  box-shadow:0 12px 34px rgba(12,47,99,.07);
}
.trust-head{display:flex;align-items:center;gap:13px;margin-bottom:16px}
.trust-icon{
  width:46px;height:46px;min-width:46px;
  border-radius:14px;display:grid;place-items:center;
  background:#edf3fb;color:var(--navy);
}
.trust-icon svg{width:23px;height:23px;fill:currentColor}
.trust-card h3{margin:0;color:var(--navy);font-size:1.15rem}
.trust-card p{margin:.45rem 0;color:#536178}
.trust-points{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}
.trust-point{
  padding:15px 14px;border:1px solid var(--line);
  border-radius:14px;background:#fbfcfe;
}
.trust-point strong{display:block;color:var(--navy);margin-bottom:4px}
.trust-point span{color:var(--muted);font-size:.88rem}

/* CONTACT */
.contact-grid-v7{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}
.contact-action{
  display:flex;align-items:flex-start;gap:12px;
  padding:14px 0;border-bottom:1px solid var(--line);
}
.contact-action:last-child{border-bottom:0}
.contact-action .trust-icon{
  width:40px;height:40px;min-width:40px;border-radius:12px;
}
.contact-action .trust-icon svg{width:20px;height:20px}
.contact-action small{display:block;color:var(--muted);margin-bottom:2px}
.contact-action a,.contact-action span{font-weight:700;color:var(--navy)}
.contact-note{
  padding:26px;
  border-radius:20px;
  color:#fff;
  background:linear-gradient(135deg,#0c2f63,#184b89);
  box-shadow:0 12px 34px rgba(12,47,99,.12);
}
.contact-note h3{margin:0;color:#fff}
.contact-note p{color:#e8eef8}
.contact-note .trust-icon{background:rgba(255,255,255,.12);color:#fff}

/* PERSIAN SPECIAL */
.fa-special-wrap{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:28px}
.fa-special-card{
  padding:24px;border:1px solid var(--line);
  border-radius:20px;background:#fff;
  box-shadow:0 10px 30px rgba(12,47,99,.06)
}
.fa-special-card h3{color:var(--navy);margin:10px 0 8px}
.fa-special-card p{color:var(--muted);margin:0 0 18px}
.fa-special-icon{
  width:48px;height:48px;border-radius:14px;
  background:#edf3fb;color:var(--navy);
  display:grid;place-items:center;
}
.fa-special-icon svg{width:26px;height:26px;fill:currentColor}

/* REGISTRATION / VISA */
.registration-hero{
  padding:80px 0 62px;color:#fff;
  background:linear-gradient(135deg,#0c2f63,#174f95);
}
.registration-content{display:grid;grid-template-columns:1.5fr .8fr;gap:28px}
.info-panel{
  padding:24px;border:1px solid var(--line);
  border-radius:18px;background:#fff;
}
.todo-badge{
  display:inline-block;padding:7px 10px;border-radius:999px;
  background:#fff4d8;color:#8a6515;font-weight:700;font-size:.85rem;
}
.check-list{padding-left:18px}
html[dir="rtl"] .check-list{padding-left:0;padding-right:18px}

/* FOOTER */
.footer{padding:34px 0;background:#081f42;color:#dfe7f4}
.footer small{color:#afbdd4}
.footer-logo{width:58px;height:58px;object-fit:contain;margin-bottom:10px}

/* WHATSAPP */
.whatsapp-float{
  position:fixed;right:18px;bottom:18px;z-index:120;
  width:56px;height:56px;border-radius:50%;
  background:var(--green);color:#fff;
  display:grid;place-items:center;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}
.whatsapp-float svg{width:29px;height:29px;fill:#fff}
html[dir="rtl"] .whatsapp-float{right:auto;left:18px}
.phone-ltr,.email-ltr{direction:ltr;unicode-bidi:embed;display:inline-block}

/* RTL */
html[dir="rtl"] .section-head,
html[dir="rtl"] .trust-card,
html[dir="rtl"] .service-mini{text-align:right}

/* RESPONSIVE */
@media(max-width:900px){
  .menu-btn{display:block}
  .navlinks{
    display:none;
    position:absolute;
    top:76px;
    left:4%;right:4%;
    padding:18px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:0 18px 50px rgba(0,0,0,.12);
    flex-direction:column;
    align-items:stretch;
  }
  .navlinks.open{display:flex}
  .hero-grid{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2,1fr)}
  .trust-points{grid-template-columns:1fr}
  .contact-grid-v7{grid-template-columns:1fr}
  .registration-content{grid-template-columns:1fr}
}
@media(max-width:700px){
  .nav{min-height:70px;gap:8px}
  .brand-wrap{gap:8px;max-width:calc(100% - 46px)}
  .brand-logo{width:34px;height:34px;flex-basis:34px}
  .brand{font-size:.67rem;letter-spacing:-.25px;white-space:nowrap}
  .brand span{font-size:.50rem;margin-top:3px;white-space:nowrap}
  .navlinks{top:70px}
  .hero{padding:62px 0 52px}
  h1{font-size:clamp(2rem,10vw,3rem)}
  .actions .btn{width:100%}
  .work-icons{gap:7px}
  .work-icon{
    width:34px!important;height:34px!important;min-width:34px!important;
    border-radius:9px!important;
  }
  .work-icon svg{width:17px!important;height:17px!important}
  .office-card{flex-basis:86vw;min-width:86vw}
  .fa-special-wrap{grid-template-columns:1fr}
  .trust-card,.contact-note{padding:20px}
}
@media(max-width:430px){
  .brand{font-size:.61rem}
  .brand span{font-size:.47rem}
  .stats{grid-template-columns:1fr 1fr}
  .service-mini{flex-basis:182px;min-width:182px}
}


/* ===== v9 public-facing cleanup + one-line section titles + office carousel ===== */

/* Keep selected section titles on a single line on desktop and mobile */
.one-line-title{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.15!important;
  font-size:clamp(1.05rem,3.2vw,2.35rem)!important;
}
html[lang="ar"] .one-line-title{
  font-size:clamp(1rem,3vw,2.2rem)!important;
}
html[lang="fa"] .one-line-title{
  font-size:clamp(1rem,3vw,2.2rem)!important;
}

/* Office carousel placed near contact */
.office-near-contact{
  padding-bottom:20px;
}
.office-showcase{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:24px;
  align-items:center;
}
.office-copy h2{
  color:var(--navy);
  margin:.2rem 0 .7rem;
}
.office-copy p{
  color:var(--muted);
  margin:0;
}
.office-carousel{
  position:relative;
  overflow:hidden;
  border-radius:20px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 14px 36px rgba(12,47,99,.08);
  aspect-ratio:16/10;
}
.office-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .6s ease;
}
.office-slide.active{opacity:1}
.office-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.office-dots{
  position:absolute;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  z-index:2;
}
.office-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  border:0;
  background:rgba(255,255,255,.58);
  box-shadow:0 1px 5px rgba(0,0,0,.2);
  padding:0;
}
.office-dot.active{background:#fff}

@media(max-width:850px){
  .office-showcase{grid-template-columns:1fr}
}
@media(max-width:560px){
  .one-line-title{
    font-size:clamp(.96rem,5.2vw,1.35rem)!important;
    letter-spacing:-.2px;
  }
  html[lang="ar"] .one-line-title,
  html[lang="fa"] .one-line-title{
    font-size:clamp(.92rem,4.8vw,1.28rem)!important;
  }
  .office-near-contact{padding-top:56px}
}


/* ===== v10: full one-line headings, no ellipsis ===== */
.one-line-title{
  white-space:nowrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
  width:max-content;
  max-width:none !important;
  font-size:clamp(1rem,2.55vw,2.2rem) !important;
  letter-spacing:-.35px;
}
.section-head:has(.one-line-title){
  max-width:none !important;
  width:100%;
  overflow:visible;
}

/* Arabic / Persian keep full title on one line too */
html[lang="ar"] .one-line-title,
html[lang="fa"] .one-line-title{
  font-size:clamp(.95rem,2.35vw,2rem) !important;
  letter-spacing:0;
}

/* Service cards stay in one horizontal row, but labels don't look cut off */
.service-mini{
  flex:0 0 230px;
  min-width:230px;
}
.service-mini h3{
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
  font-size:.92rem;
}

/* Slightly wider cards for long service names */
.service-mini:nth-child(5){
  flex-basis:270px;
  min-width:270px;
}

@media(max-width:700px){
  .one-line-title{
    font-size:clamp(.88rem,4vw,1.18rem) !important;
    letter-spacing:-.2px;
  }
  html[lang="ar"] .one-line-title,
  html[lang="fa"] .one-line-title{
    font-size:clamp(.84rem,3.65vw,1.12rem) !important;
  }
  .service-mini{
    flex-basis:205px;
    min-width:205px;
  }
  .service-mini:nth-child(5){
    flex-basis:250px;
    min-width:250px;
  }
  .service-mini h3{
    font-size:.84rem;
  }
}


/* ===== v11 logistics visual banner ===== */
.logistics-banner-section{
  padding:30px 0 68px;
  background:#fff;
}
.logistics-banner{
  position:relative;
  overflow:hidden;
  width:100%;
  aspect-ratio:16/6;
  min-height:320px;
  border-radius:24px;
  background:#0c2f63;
  box-shadow:0 18px 46px rgba(12,47,99,.16);
}
.logistics-banner::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(6,35,74,.32),rgba(6,35,74,.04) 42%,rgba(6,35,74,.13)),
    linear-gradient(0deg,rgba(6,35,74,.18),transparent 45%);
}
.logistics-banner-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transform:scale(1.015);
  transition:opacity .8s ease,transform 5s ease;
}
.logistics-banner-slide.active{
  opacity:1;
  transform:scale(1);
}
.logistics-banner-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.logistics-banner-controls{
  position:absolute;
  z-index:4;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  display:flex;
  gap:9px;
}
.logistics-banner-dot{
  width:10px;
  height:10px;
  border:1px solid rgba(255,255,255,.9);
  border-radius:50%;
  padding:0;
  background:rgba(255,255,255,.35);
  cursor:pointer;
}
.logistics-banner-dot.active{background:#fff}
.logistics-banner-arrow{
  position:absolute;
  z-index:4;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.92);
  color:#0c2f63;
  font-size:24px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(0,0,0,.16);
}
.logistics-banner-prev{left:18px}
.logistics-banner-next{right:18px}

@media(max-width:900px){
  .logistics-banner{
    aspect-ratio:16/8;
    min-height:300px;
    border-radius:20px;
  }
}
@media(max-width:600px){
  .logistics-banner-section{
    padding:18px 0 48px;
  }
  .logistics-banner{
    aspect-ratio:4/3;
    min-height:0;
    border-radius:18px;
  }
  .logistics-banner-slide img{
    object-position:center center;
  }
  .logistics-banner-arrow{
    width:36px;
    height:36px;
    font-size:20px;
  }
  .logistics-banner-prev{left:10px}
  .logistics-banner-next{right:10px}
  .logistics-banner-controls{bottom:12px}
}


/* ===== v14 Safari / iPhone SVG hardening ===== */

/* Safari can use intrinsic SVG dimensions if sizing is not explicit.
   Lock every icon to its container and prevent intrinsic overflow. */
svg{
  display:block;
  max-width:100%;
  max-height:100%;
  overflow:hidden;
}
.work-icon,
.cargo-icon,
.trust-icon,
.fa-special-icon{
  overflow:hidden !important;
  flex-shrink:0 !important;
}
.work-icon svg{
  width:19px !important;
  height:19px !important;
  min-width:19px !important;
  min-height:19px !important;
}
.cargo-icon svg{
  width:23px !important;
  height:23px !important;
  min-width:23px !important;
  min-height:23px !important;
}
.trust-icon svg{
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  min-height:22px !important;
}
.fa-special-icon svg{
  width:25px !important;
  height:25px !important;
  min-width:25px !important;
  min-height:25px !important;
}

/* Extra WebKit constraints */
@supports (-webkit-touch-callout: none){
  .work-icon,
  .cargo-icon,
  .trust-icon,
  .fa-special-icon{
    -webkit-transform:translateZ(0);
    transform:translateZ(0);
  }
  .work-icon svg,
  .cargo-icon svg,
  .trust-icon svg,
  .fa-special-icon svg{
    -webkit-box-flex:0;
    flex:none;
  }
}

/* Mobile Safari refinements */
@media(max-width:700px){
  .work-icon svg{
    width:17px !important;
    height:17px !important;
    min-width:17px !important;
    min-height:17px !important;
  }
  .cargo-icon{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
  }
  .cargo-icon svg{
    width:21px !important;
    height:21px !important;
    min-width:21px !important;
    min-height:21px !important;
  }
  .trust-icon svg{
    width:20px !important;
    height:20px !important;
    min-width:20px !important;
    min-height:20px !important;
  }
}

/* Refined WhatsApp contact chip */
.wa-contact-chip{
  min-width:194px;
  max-width:240px;
}
.wa-chip-photo{
  border:2px solid #fff;
  box-shadow:0 0 0 2px #e9eef6;
}
.wa-chip-photo img{
  object-position:center 38%;
}
